mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #106315 from Riteo/popping-up-everywhere
Wayland: Fix error spam when closing popup
This commit is contained in:
commit
8b93b67e14
1 changed files with 2 additions and 2 deletions
|
@ -1236,12 +1236,12 @@ void DisplayServerWayland::window_set_flag(WindowFlags p_flag, bool p_enabled, D
|
|||
|
||||
case WINDOW_FLAG_POPUP: {
|
||||
ERR_FAIL_COND_MSG(p_window_id == MAIN_WINDOW_ID, "Main window can't be popup.");
|
||||
ERR_FAIL_COND_MSG(wd.visible, "Popup flag can't changed while window is opened.");
|
||||
ERR_FAIL_COND_MSG(wd.visible && (wd.flags & WINDOW_FLAG_POPUP_BIT) != p_enabled, "Popup flag can't changed while window is opened.");
|
||||
} break;
|
||||
|
||||
case WINDOW_FLAG_POPUP_WM_HINT: {
|
||||
ERR_FAIL_COND_MSG(p_window_id == MAIN_WINDOW_ID, "Main window can't have popup hint.");
|
||||
ERR_FAIL_COND_MSG(wd.visible, "Popup hint can't changed while window is opened.");
|
||||
ERR_FAIL_COND_MSG(wd.visible && (wd.flags & WINDOW_FLAG_POPUP_WM_HINT_BIT) != p_enabled, "Popup hint can't changed while window is opened.");
|
||||
} break;
|
||||
|
||||
default: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue