simplify check in urgent()
we only care if it returned a client or not
This commit is contained in:
parent
56114f700f
commit
0b2c33248c
1 changed files with 2 additions and 2 deletions
4
dwl.c
4
dwl.c
|
@ -2523,8 +2523,8 @@ urgent(struct wl_listener *listener, void *data)
|
||||||
{
|
{
|
||||||
struct wlr_xdg_activation_v1_request_activate_event *event = data;
|
struct wlr_xdg_activation_v1_request_activate_event *event = data;
|
||||||
Client *c = NULL;
|
Client *c = NULL;
|
||||||
int type = toplevel_from_wlr_surface(event->surface, &c, NULL);
|
toplevel_from_wlr_surface(event->surface, &c, NULL);
|
||||||
if (type >= 0 && type != LayerShell && c != focustop(selmon)) {
|
if (c && c != focustop(selmon)) {
|
||||||
c->isurgent = 1;
|
c->isurgent = 1;
|
||||||
printstatus();
|
printstatus();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue