mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-08 17:25:58 +01:00
guard event in maximize request
This commit is contained in:
parent
2d73da1a79
commit
59a3c43913
1 changed files with 1 additions and 1 deletions
|
@ -707,7 +707,7 @@ void Events::listener_requestMaximize(void* owner, void* data) {
|
|||
|
||||
const auto EV = (wlr_foreign_toplevel_handle_v1_maximized_event*)data;
|
||||
|
||||
g_pCompositor->setWindowFullscreen(PWINDOW, EV->maximized, FULLSCREEN_MAXIMIZED); // this will be rejected if there already is a fullscreen window
|
||||
g_pCompositor->setWindowFullscreen(PWINDOW, EV ? EV->maximized : !PWINDOW->m_bIsFullscreen, FULLSCREEN_MAXIMIZED); // this will be rejected if there already is a fullscreen window
|
||||
|
||||
wlr_xdg_surface_schedule_configure(PWINDOW->m_uSurface.xdg);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue