Skip to content

Commit

Permalink
Merge pull request #3132 from MirServer/send-more-configure-events
Browse files Browse the repository at this point in the history
Don't allow fullscreen surfaces to be resized
  • Loading branch information
AlanGriffiths authored Nov 20, 2023
2 parents aeeb7e8 + d2b7991 commit c28a1dd
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 c28a1dd

Please sign in to comment.