Xwayland: honor fullscreen requests

This commit is contained in:
Isaac Freund
2021-10-12 18:47:08 +02:00
parent 50814e0ffe
commit 4b94b9c083
2 changed files with 11 additions and 5 deletions

View File

@ -323,7 +323,7 @@ pub fn setActivated(self: Self, activated: bool) void {
}
}
pub fn setFullscreen(self: Self, fullscreen: bool) void {
fn setFullscreen(self: Self, fullscreen: bool) void {
if (self.foreign_toplevel_handle) |handle| handle.setFullscreen(fullscreen);
switch (self.impl) {
.xdg_toplevel => |xdg_toplevel| xdg_toplevel.setFullscreen(fullscreen),