mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b=530761 check toplevel window state in hierarchy_changed_cb r=roc
This commit is contained in:
parent
41824cb4bf
commit
10aa40c623
@ -5790,16 +5790,16 @@ hierarchy_changed_cb (GtkWidget *widget,
|
||||
g_signal_handlers_disconnect_by_func(previous_toplevel,
|
||||
FuncToGpointer(window_state_event_cb),
|
||||
widget);
|
||||
if (widget->window) {
|
||||
old_window_state = gdk_window_get_state(widget->window);
|
||||
if (previous_toplevel->window) {
|
||||
old_window_state = gdk_window_get_state(previous_toplevel->window);
|
||||
}
|
||||
}
|
||||
|
||||
if (GTK_IS_WINDOW(toplevel)) {
|
||||
g_signal_connect_swapped(toplevel, "window-state-event",
|
||||
G_CALLBACK(window_state_event_cb), widget);
|
||||
if (widget->window) {
|
||||
event.new_window_state = gdk_window_get_state(widget->window);
|
||||
if (toplevel->window) {
|
||||
event.new_window_state = gdk_window_get_state(toplevel->window);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user