diff options
author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-12-30 14:29:19 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-12-30 14:29:19 -0600 |
commit | 0b2c33248c57d8d6366f292d421f86f664ca3c67 (patch) | |
tree | d7d92273412a8afec76d7e5d384fc94a0a8a39c1 /dwl.c | |
parent | 56114f700ffabc7f0f69a0f98053cfb629e0d521 (diff) |
simplify check in urgent()
we only care if it returned a client or not
Diffstat (limited to 'dwl.c')
-rw-r--r-- | dwl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2523,8 +2523,8 @@ urgent(struct wl_listener *listener, void *data) { struct wlr_xdg_activation_v1_request_activate_event *event = data; Client *c = NULL; - int type = toplevel_from_wlr_surface(event->surface, &c, NULL); - if (type >= 0 && type != LayerShell && c != focustop(selmon)) { + toplevel_from_wlr_surface(event->surface, &c, NULL); + if (c && c != focustop(selmon)) { c->isurgent = 1; printstatus(); } |