handle xdg_toplevel unset_fullscreen request
Check toplevel->requested.fullscreen to determine whether the client wants to enter or leave fullscreen, and call wUnfullscreenWindow accordingly.
This commit is contained in:
parent
321df47493
commit
6ae9ad3dc5
|
|
@ -154,8 +154,13 @@ handle_toplevel_request_fullscreen(struct wl_listener *listener, void *data)
|
|||
if (!desc || desc->parent_type != WCLASS_WINDOW)
|
||||
return;
|
||||
WWindow *wwin = (WWindow *)desc->parent;
|
||||
if (!wwin->flags.fullscreen)
|
||||
wFullscreenWindow(wwin);
|
||||
if (view->xdg_surface->toplevel->requested.fullscreen) {
|
||||
if (!wwin->flags.fullscreen)
|
||||
wFullscreenWindow(wwin);
|
||||
} else {
|
||||
if (wwin->flags.fullscreen)
|
||||
wUnfullscreenWindow(wwin);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue