~ruther/dwl

0b2c33248c57d8d6366f292d421f86f664ca3c67 — Leonardo Hernández Hernández 2 years ago 56114f7
simplify check in urgent()

we only care if it returned a client or not
1 files changed, 2 insertions(+), 2 deletions(-)

M dwl.c
M dwl.c => dwl.c +2 -2
@@ 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();
	}

Do not follow this link