mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
systray may not exist when a clientmessage is received, resulting in dwm crash
This commit is contained in:
parent
f4f5ecab75
commit
018721ca76
2
dwm.c
2
dwm.c
@ -1076,7 +1076,7 @@ clientmessage(XEvent *e)
|
|||||||
#endif // FOCUSONNETACTIVE_PATCH
|
#endif // FOCUSONNETACTIVE_PATCH
|
||||||
|
|
||||||
#if BAR_SYSTRAY_PATCH
|
#if BAR_SYSTRAY_PATCH
|
||||||
if (showsystray && cme->window == systray->win && cme->message_type == netatom[NetSystemTrayOP]) {
|
if (showsystray && systray && cme->window == systray->win && cme->message_type == netatom[NetSystemTrayOP]) {
|
||||||
/* add systray icons */
|
/* add systray icons */
|
||||||
if (cme->data.l[1] == SYSTEM_TRAY_REQUEST_DOCK) {
|
if (cme->data.l[1] == SYSTEM_TRAY_REQUEST_DOCK) {
|
||||||
if (!(c = (Client *)calloc(1, sizeof(Client))))
|
if (!(c = (Client *)calloc(1, sizeof(Client))))
|
||||||
|
Loading…
Reference in New Issue
Block a user