aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorAlexander Courtis <alex@courtis.org>2020-08-09 11:56:34 +1000
committerAlexander Courtis <alex@courtis.org>2020-08-09 11:56:34 +1000
commit5b464edf91b748a19cba2aa2c472f2d939f15220 (patch)
tree0faff47062dc8c95d9a49a02db0a85bd74890ecb /dwl.c
parent95515682526dc786a9c2a668274a85be46b44d03 (diff)
#31 independents retain focus while mouse is over them
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c4
1 files changed, 3 insertions, 1 deletions
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) {