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 (#3679)

If the surface ignores exclusion zones, then we should use the display
area instead of the application zone

`cosmic-bg` is now broken always as it should be 🎉
  • Loading branch information
AlanGriffiths authored Nov 27, 2024
2 parents 9e1ccc8 + 2c3d235 commit 86ece83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/miral/basic_window_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1877,7 +1877,9 @@ auto miral::BasicWindowManager::place_new_surface(WindowSpecification parameters
display_area = active_display_area();
}

auto const application_zone = display_area->application_zone.extents();
auto const application_zone = parameters.ignore_exclusion_zones().value_or(false)
? display_area->area
: display_area->application_zone.extents();

bool positioned = false;

Expand Down

0 comments on commit 86ece83

Please sign in to comment.