Skip to content

Commit

Permalink
Do not do the infinite usable rect, that's dumb
Browse files Browse the repository at this point in the history
We need a better solution to stop popups from trying to fit themselves.
The compositor will do that for them but they don't know. The popups are
blinded by their power.
  • Loading branch information
Riteo committed Jan 23, 2025
1 parent 97bdeb8 commit e2e8ba7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions platform/linuxbsd/wayland/display_server_wayland.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,7 @@ Size2i DisplayServerWayland::screen_get_size(int p_screen) const {

Rect2i DisplayServerWayland::screen_get_usable_rect(int p_screen) const {
// Unsupported on wayland.
// DEBUG: Test
return Rect2i(Point2i(-(INT32_MAX / 2), -(INT32_MAX / 2)), Size2i(INT32_MAX, INT32_MAX));
return Rect2i(Point2i(), screen_get_size(p_screen));
}

int DisplayServerWayland::screen_get_dpi(int p_screen) const {
Expand Down

0 comments on commit e2e8ba7

Please sign in to comment.