Skip to content
Browse files

Don't crash when the system tray manager (like gnome-shell) is restarted

Patch created by Julien Danjou
http://bugs.debian.org/500880
  • Loading branch information...
1 parent 9f38716 commit c2b8873674b65dd5c64b6d5bc7b5549efd5c7554 @epienbroek committed Aug 21, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/eggtrayicon.c
View
3 src/eggtrayicon.c
@@ -326,6 +326,9 @@ egg_tray_icon_update_manager_window (EggTrayIcon *icon,
xdisplay = GDK_DISPLAY_XDISPLAY (gtk_widget_get_display (GTK_WIDGET (icon)));
+ if (!xdisplay)
+ return;
+
XGrabServer (xdisplay);
icon->manager_window = XGetSelectionOwner (xdisplay,

0 comments on commit c2b8873

Please sign in to comment.
Something went wrong with that request. Please try again.