Conversely, we shouldn't automatically show children when we get focus
This commit is contained in:
@@ -447,20 +447,6 @@ void X11_ReconcileKeyboardState(_THIS)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void X11_ShowChildren(_THIS, SDL_Window *window)
|
|
||||||
{
|
|
||||||
for (window = window->first_child; window != NULL; window = window->next_sibling) {
|
|
||||||
window->driverdata->hidden_by_parent_focus = SDL_FALSE;
|
|
||||||
if (!(window->flags & SDL_WINDOW_HIDDEN)) {
|
|
||||||
X11_ShowWindow(_this, window);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (window->first_child) {
|
|
||||||
X11_ShowChildren(_this, window);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void X11_DispatchFocusIn(_THIS, SDL_WindowData *data)
|
static void X11_DispatchFocusIn(_THIS, SDL_WindowData *data)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_XEVENTS
|
#ifdef DEBUG_XEVENTS
|
||||||
@@ -479,9 +465,6 @@ static void X11_DispatchFocusIn(_THIS, SDL_WindowData *data)
|
|||||||
if (data->flashing_window) {
|
if (data->flashing_window) {
|
||||||
X11_FlashWindow(_this, data->window, SDL_FLASH_CANCEL);
|
X11_FlashWindow(_this, data->window, SDL_FLASH_CANCEL);
|
||||||
}
|
}
|
||||||
if (data->window->parent == NULL) {
|
|
||||||
X11_ShowChildren(_this, data->window);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void X11_DispatchFocusOut(_THIS, SDL_WindowData *data)
|
static void X11_DispatchFocusOut(_THIS, SDL_WindowData *data)
|
||||||
|
|||||||
Reference in New Issue
Block a user