core: add initial fullscreen support for x11

This commit is contained in:
Joshua Holmes 2024-11-21 20:01:39 -08:00 committed by Emi Gutekanst
parent 15c63e8334
commit f997859d7a
3 changed files with 136 additions and 8 deletions

View file

@ -5,6 +5,7 @@ const Linux = @import("../Linux.zig");
const Core = @import("../../Core.zig");
const InitOptions = Core.InitOptions;
const KeyEvent = Core.KeyEvent;
const DisplayMode = Core.DisplayMode;
const log = std.log.scoped(.mach);
pub const Wayland = @This();
@ -210,6 +211,11 @@ pub fn setTitle(wl: *Wayland, title: [:0]const u8) void {
c.xdg_toplevel_set_title(wl.toplevel, title);
}
pub fn setDisplayMode(wl: *Wayland, display_mode: DisplayMode) void {
_ = wl;
_ = display_mode;
}
const LibXkbCommon = struct {
handle: std.DynLib,