Skip to content

Commit

Permalink
Don't allow client to resize fullscreen surfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGriffiths committed Nov 17, 2023
1 parent c1d2670 commit d2b7991
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/miral/basic_window_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit d2b7991

Please sign in to comment.