xdg-shell: implement version 5

This commit is contained in:
Isaac Freund 2023-02-12 20:23:49 +01:00
parent 879b880a6a
commit 0e0b585c44
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11
2 changed files with 3 additions and 1 deletions

View File

@ -100,7 +100,7 @@ pub fn init(self: *Self) !void {
const compositor = try wlr.Compositor.create(self.wl_server, self.renderer);
_ = try wlr.Subcompositor.create(self.wl_server);
self.xdg_shell = try wlr.XdgShell.create(self.wl_server, 3);
self.xdg_shell = try wlr.XdgShell.create(self.wl_server, 5);
self.new_xdg_surface.setNotify(handleNewXdgSurface);
self.xdg_shell.events.new_surface.add(&self.new_xdg_surface);

View File

@ -81,6 +81,8 @@ pub fn create(output: *Output, xdg_toplevel: *wlr.XdgToplevel) error{OutOfMemory
xdg_toplevel.base.events.map.add(&self.map);
xdg_toplevel.base.events.unmap.add(&self.unmap);
xdg_toplevel.base.events.new_popup.add(&self.new_popup);
_ = xdg_toplevel.setWmCapabilities(.{ .fullscreen = true });
}
/// Returns true if a configure must be sent to ensure that the pending