Skip to content

Commit

Permalink
Ignore attempts to place window
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGriffiths committed Oct 3, 2024
1 parent 2952045 commit cbdab5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/mir-x11-kiosk/x11_kiosk_window_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ void X11KioskWindowManagerPolicy::handle_modify_window(WindowInfo& window_info,
!window_info.parent())
{
specification.state() = mir_window_state_fullscreen;
specification.size() = mir::optional_value<Size>{}; // Ignore requested size (if any) when we maximize
specification.size() = mir::optional_value<Size>{}; // Ignore requested size (if any) when we fullscreen
specification.top_left() = mir::optional_value<Point>{}; // Ignore requested position (if any) when we fullscreen
tools.place_and_size_for_state(specification, window_info);

if (!modifications.state().is_set() || modifications.state().value() != mir_window_state_restored)
Expand Down

0 comments on commit cbdab5c

Please sign in to comment.