Fix Floating Window overlapping when on screen edge
This commit is contained in:
parent
1586c5674b
commit
bc0efb86a9
1 changed files with 2 additions and 2 deletions
|
|
@ -1364,8 +1364,6 @@ Rect2i DisplayServerX11::screen_get_usable_rect(int p_screen) const {
|
|||
}
|
||||
|
||||
if (desktop_valid) {
|
||||
use_simple_method = false;
|
||||
|
||||
// Handle bad window errors silently because there's no other way to check
|
||||
// that one of the windows has been destroyed in the meantime.
|
||||
int (*oldHandler)(Display *, XErrorEvent *) = XSetErrorHandler(&bad_window_error_handler);
|
||||
|
|
@ -1393,6 +1391,8 @@ Rect2i DisplayServerX11::screen_get_usable_rect(int p_screen) const {
|
|||
}
|
||||
}
|
||||
if (!g_bad_window && strut_found && (format == 32) && (strut_len >= 4) && strut_data) {
|
||||
use_simple_method = false;
|
||||
|
||||
long *struts = (long *)strut_data;
|
||||
|
||||
long left = struts[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue