dwm-autoraise_windows-20240809-d2e6bd5b.diff (763B)
1 From d2e6bd5b14741ce15d66ad1b23c593b3bba4bf8a Mon Sep 17 00:00:00 2001 2 From: krackout <kr@kr.kr> 3 Date: Fri, 9 Aug 2024 09:29:22 +0300 4 Subject: [PATCH] Autoraise windows when gaining focus with mouse hovering - in 5 floating layout only 6 7 --- 8 dwm.c | 3 +++ 9 1 file changed, 3 insertions(+) 10 11 diff --git a/dwm.c b/dwm.c 12 index 67c6b2b..3a9a62c 100644 13 --- a/dwm.c 14 +++ b/dwm.c 15 @@ -803,6 +803,9 @@ focus(Client *c) 16 grabbuttons(c, 1); 17 XSetWindowBorder(dpy, c->win, scheme[SchemeSel][ColBorder].pixel); 18 setfocus(c); 19 + if (selmon->lt[selmon->sellt]->arrange == NULL) { 20 + XRaiseWindow(dpy, c->win); 21 + } 22 } else { 23 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); 24 XDeleteProperty(dpy, root, netatom[NetActiveWindow]); 25 -- 26 2.39.2 27