[wiki] [sites] added autoraise-windows dwm patch || krackout

From: <git_AT_suckless.org>
Date: Fri, 09 Aug 2024 09:14:58 +0200

commit 004d3ce9f8e3c5d73467f32c1938987ac44475f3
Author: krackout <kr_AT_kr.gr>
Date: Fri Aug 9 10:11:53 2024 +0300

    added autoraise-windows dwm patch

diff --git a/dwm.suckless.org/patches/autoraise-windows/dwm-autoraise_windows-20240809-d2e6bd5b.diff b/dwm.suckless.org/patches/autoraise-windows/dwm-autoraise_windows-20240809-d2e6bd5b.diff
new file mode 100644
index 00000000..c7f7534a
--- /dev/null
+++ b/dwm.suckless.org/patches/autoraise-windows/dwm-autoraise_windows-20240809-d2e6bd5b.diff
_AT_@ -0,0 +1,27 @@
+From d2e6bd5b14741ce15d66ad1b23c593b3bba4bf8a Mon Sep 17 00:00:00 2001
+From: krackout <kr_AT_kr.kr>
+Date: Fri, 9 Aug 2024 09:29:22 +0300
+Subject: [PATCH] Autoraise windows when gaining focus with mouse hovering - in
+ floating layout only
+
+---
+ dwm.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/dwm.c b/dwm.c
+index 67c6b2b..3a9a62c 100644
+--- a/dwm.c
++++ b/dwm.c
+_AT_@ -803,6 +803,9 @@ focus(Client *c)
+ grabbuttons(c, 1);
+ XSetWindowBorder(dpy, c->win, scheme[SchemeSel][ColBorder].pixel);
+ setfocus(c);
++ if (selmon->lt[selmon->sellt]->arrange == NULL) {
++ XRaiseWindow(dpy, c->win);
++ }
+ } else {
+ XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
+ XDeleteProperty(dpy, root, netatom[NetActiveWindow]);
+--
+2.39.2
+
diff --git a/dwm.suckless.org/patches/autoraise-windows/index.md b/dwm.suckless.org/patches/autoraise-windows/index.md
new file mode 100644
index 00000000..1fcaf725
--- /dev/null
+++ b/dwm.suckless.org/patches/autoraise-windows/index.md
_AT_@ -0,0 +1,22 @@
+Autoraise windows
+=================
+
+Description
+-----------
+Autoraise windows when gaining focus with mouse hovering - in floating layout only.
+By default when hovering with mouse over windows they get focus, but they are not
+autoraised. That's the optimal option on tiling or monocle layout, because small
+floating windows could be hidden if mouse was moved on a bigger tiled or full screen
+window.
+
+This patch autoraises windows when gaining focus with mouse hovering - in floating
+layout only. By default windows are raised if selected by key shortcut or if
+mod key + left mouse button is pressed; impractical for my tastes.
+
+Download
+--------
+* [dwm-autoraise_windows-20240809-d2e6bd5b.diff](dwm-autoraise_windows-20240809-d2e6bd5b.diff)
+
+Authors
+-------
+* Κρακ Άουτ - <krackout [at] gmx dot com>
Received on Fri Aug 09 2024 - 09:14:58 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 09 2024 - 09:24:52 CEST