diff options
author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-07-30 14:44:17 -0500 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-07-30 14:44:17 -0500 |
commit | 662e06e68e9bc2c41c3cb90d36c4d9998ff1f958 (patch) | |
tree | 4782ab2a3043e889aa9be78d6830b94e191e0633 /dwl.c | |
parent | 9d2eb8483b52a7a4858454d557196d83e1a24011 (diff) |
check client_from_wlr_surface() returning NULL in urgent()
fix #281
Diffstat (limited to 'dwl.c')
-rw-r--r-- | dwl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2377,7 +2377,7 @@ urgent(struct wl_listener *listener, void *data) { struct wlr_xdg_activation_v1_request_activate_event *event = data; Client *c = client_from_wlr_surface(event->surface); - if (c != selclient()) { + if (c && c != selclient()) { c->isurgent = 1; printstatus(); } |