| 541 Display *xdisplay; |
541 Display *xdisplay; |
| 542 |
542 |
| 543 xdisplay = egg_tray_icon_get_x_display(icon); |
543 xdisplay = egg_tray_icon_get_x_display(icon); |
| 544 |
544 |
| 545 if (xdisplay == NULL) |
545 if (xdisplay == NULL) |
| 546 return; |
546 return 0; |
| 547 |
547 |
| 548 ev.type = ClientMessage; |
548 ev.type = ClientMessage; |
| 549 ev.window = (Window)gtk_plug_get_id (GTK_PLUG (icon)); |
549 ev.window = (Window)gtk_plug_get_id (GTK_PLUG (icon)); |
| 550 ev.format = 8; |
550 ev.format = 8; |
| 551 ev.message_type = XInternAtom (xdisplay, |
551 ev.message_type = XInternAtom (xdisplay, |