xdg-shell: implement version 5
This commit is contained in:
parent
879b880a6a
commit
0e0b585c44
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user