Permalink
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...
epienbroek committed Aug 21, 2012
1 parent 9f38716 commit c2b8873674b65dd5c64b6d5bc7b5549efd5c7554
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/eggtrayicon.c
View
@@ -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.