From d2b7991cfa11166ec7f0b818c8f9aa462553243e Mon Sep 17 00:00:00 2001 From: Alan Griffiths Date: Fri, 17 Nov 2023 17:59:08 +0000 Subject: [PATCH] Don't allow client to resize fullscreen surfaces --- src/miral/basic_window_manager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/miral/basic_window_manager.cpp b/src/miral/basic_window_manager.cpp index 8a373df1ed2..66cfe788a01 100644 --- a/src/miral/basic_window_manager.cpp +++ b/src/miral/basic_window_manager.cpp @@ -202,6 +202,10 @@ void miral::BasicWindowManager::modify_surface( WindowSpecification mods{modifications}; validate_modification_request(mods, info); place_and_size_for_state(mods, info); + if (!mods.state() && info.state() == mir_window_state_fullscreen) + { + if (mods.size().is_set()) mods.size().consume(); + } policy->handle_modify_window(info, mods); }