Add a separate application focus/in notification out from Window focus notification.
This commit is contained in:
parent
27605769c4
commit
438c380458
20 changed files with 65 additions and 35 deletions
|
|
@ -182,8 +182,8 @@ void EditorSpinSlider::_grabber_gui_input(const Ref<InputEvent> &p_event) {
|
|||
}
|
||||
|
||||
void EditorSpinSlider::_notification(int p_what) {
|
||||
if (p_what == NOTIFICATION_WM_FOCUS_OUT ||
|
||||
p_what == NOTIFICATION_WM_FOCUS_IN ||
|
||||
if (p_what == NOTIFICATION_WM_WINDOW_FOCUS_OUT ||
|
||||
p_what == NOTIFICATION_WM_WINDOW_FOCUS_IN ||
|
||||
p_what == NOTIFICATION_EXIT_TREE) {
|
||||
if (grabbing_spinner) {
|
||||
grabber->hide();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue