summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/events/Windows.cpp')
-rw-r--r--src/events/Windows.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index b67a8619..8e6aed25 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -705,7 +705,8 @@ void Events::listener_NewXDGDeco(wl_listener* listener, void* data) {
void Events::listener_requestMaximize(void* owner, void* data) {
const auto PWINDOW = (CWindow*)owner;
- // ignore
+ g_pCompositor->setWindowFullscreen(PWINDOW, !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);
}