forked from AuroraMiddleware/gtk
widget: Be more careful with roots
We were assuming that all roots are windows, and calling GtkWindow apis on them.
This commit is contained in:
parent
710b8d7f40
commit
9ba184adf7
@ -3298,9 +3298,8 @@ update_cursor_on_state_change (GtkWidget *widget)
|
|||||||
GtkRoot *root;
|
GtkRoot *root;
|
||||||
|
|
||||||
root = _gtk_widget_get_root (widget);
|
root = _gtk_widget_get_root (widget);
|
||||||
if (root)
|
if (GTK_IS_WINDOW (root))
|
||||||
gtk_window_update_pointer_focus_on_state_change (GTK_WINDOW (root),
|
gtk_window_update_pointer_focus_on_state_change (GTK_WINDOW (root), widget);
|
||||||
widget);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user