From 5b464edf91b748a19cba2aa2c472f2d939f15220 Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Sun, 9 Aug 2020 11:56:34 +1000 Subject: [PATCH] #31 independents retain focus while mouse is over them --- dwl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index f5247b0..342ff1e 100644 --- a/dwl.c +++ b/dwl.c @@ -1783,7 +1783,9 @@ xytoindependent(double x, double y) { /* Find the topmost visible independent at point (x, y). * For independents, the most recently created can be used as the "top". - * AMC TODO: factor monitor or owning client visibility in. */ + * We rely on the X11 convention of unmapping unmanaged when the "owning" + * client loses focus, which ensures that unmanaged are only visible on + * the current tag. */ Client *c; struct wlr_box geom; wl_list_for_each_reverse(c, &independents, link) {