Merge pull request #116376 from deralmas/wl/noope
Wayland: Skip resize request when the size is the same
This commit is contained in:
commit
a82e210b5a
1 changed files with 4 additions and 0 deletions
|
|
@ -1194,6 +1194,10 @@ void DisplayServerWayland::window_set_size(const Size2i p_size, DisplayServer::W
|
|||
ERR_FAIL_COND(!windows.has(p_window_id));
|
||||
WindowData &wd = windows[p_window_id];
|
||||
|
||||
if (wd.rect.size == p_size) {
|
||||
return;
|
||||
}
|
||||
|
||||
Size2i new_size = p_size;
|
||||
if (wd.visible) {
|
||||
new_size = wayland_thread.window_set_size(p_window_id, p_size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue