forked from AuroraMiddleware/gtk
GtkApplication: Allow passing windows on non-X11 targets
It's not the application's fault that we don't do anything with the passed GtkWindow on non-X11, so don't try to get an XID on non-X11. https://bugzilla.gnome.org/show_bug.cgi?id=695783
This commit is contained in:
parent
64397962e8
commit
ee44ed75ca
@ -1431,8 +1431,10 @@ gtk_application_inhibit (GtkApplication *application,
|
||||
gdkwindow = gtk_widget_get_window (GTK_WIDGET (window));
|
||||
if (gdkwindow == NULL)
|
||||
g_warning ("Inhibit called with an unrealized window");
|
||||
else
|
||||
#ifdef GDK_WINDOWING_X11
|
||||
else if (GDK_IS_X11_WINDOW (gdkwindow))
|
||||
xid = GDK_WINDOW_XID (gdkwindow);
|
||||
#endif
|
||||
}
|
||||
|
||||
res = g_dbus_proxy_call_sync (application->priv->sm_proxy,
|
||||
|
Loading…
Reference in New Issue
Block a user