Skip to content

Commit

Permalink
bugfix: when placing a surface that ignores exclusion zones, the appl…
Browse files Browse the repository at this point in the history
…ication_zone should be the full display_area
  • Loading branch information
mattkae committed Nov 26, 2024
1 parent 9e1ccc8 commit 5069673
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/miral/basic_window_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,12 @@ void miral::BasicWindowManager::place_and_size_for_state(
return display_area_for(window_info);
}();

auto const application_zone = display_area->application_zone.extents();
auto const ignore_exclusion_zones = modifications.ignore_exclusion_zones().is_set()
? modifications.ignore_exclusion_zones().value()
: window_info.ignore_exclusion_zones();
auto const application_zone = ignore_exclusion_zones
? display_area->area
: display_area->application_zone.extents();
Rectangle rect;

switch (new_state)
Expand Down Expand Up @@ -1877,7 +1882,11 @@ auto miral::BasicWindowManager::place_new_surface(WindowSpecification parameters
display_area = active_display_area();
}

auto const application_zone = display_area->application_zone.extents();
auto const ignore_exclusion_zones = parameters.ignore_exclusion_zones().is_set()
&& parameters.ignore_exclusion_zones().value();
auto const application_zone = ignore_exclusion_zones
? display_area->area
: display_area->application_zone.extents();

bool positioned = false;

Expand Down

0 comments on commit 5069673

Please sign in to comment.