From 35557ab0426ba326e7bba8f1aeac1ac5495bf079 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Thu, 23 Apr 2020 19:56:12 -0500 Subject: don't detect non-visible clients under cursor --- dwl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dwl.c b/dwl.c index 3ffe6c8..df72eef 100644 --- a/dwl.c +++ b/dwl.c @@ -1148,6 +1148,9 @@ xytoclient(double x, double y, * cursor. This relies on clients being ordered from top-to-bottom. */ Client *c; wl_list_for_each(c, &clients, link) { + /* Skip clients that aren't visible */ + if (!VISIBLEON(c, c->mon)) + continue; /* * XDG toplevels may have nested surfaces, such as popup windows * for context menus or tooltips. This function tests if any of -- cgit v1.2.3