[X11] Do not try to focus unmapped window.
This commit is contained in:
parent
86b0faf2ec
commit
3cc37342c4
3 changed files with 8 additions and 4 deletions
|
|
@ -1238,7 +1238,7 @@ void DisplayServerWindows::window_set_flag(WindowFlags p_flag, bool p_enabled, W
|
|||
} break;
|
||||
case WINDOW_FLAG_POPUP: {
|
||||
ERR_FAIL_COND_MSG(p_window == MAIN_WINDOW_ID, "Main window can't be popup.");
|
||||
ERR_FAIL_COND_MSG(IsWindowVisible(wd.hWnd) && (wd.is_popup != p_enabled), "Pupup flag can't changed while window is opened.");
|
||||
ERR_FAIL_COND_MSG(IsWindowVisible(wd.hWnd) && (wd.is_popup != p_enabled), "Popup flag can't changed while window is opened.");
|
||||
wd.is_popup = p_enabled;
|
||||
} break;
|
||||
case WINDOW_FLAG_MAX:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue