sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 004d3ce9f8e3c5d73467f32c1938987ac44475f3
parent f484ba8d03d99e4a190c9cf52f9c0c7cbdcb9af1
Author: krackout <kr@kr.gr>
Date:   Fri,  9 Aug 2024 10:11:53 +0300

added autoraise-windows dwm patch

Diffstat:
Adwm.suckless.org/patches/autoraise-windows/dwm-autoraise_windows-20240809-d2e6bd5b.diff | 27+++++++++++++++++++++++++++
Adwm.suckless.org/patches/autoraise-windows/index.md | 22++++++++++++++++++++++
2 files changed, 49 insertions(+), 0 deletions(-)

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 @@ -0,0 +1,27 @@ +From d2e6bd5b14741ce15d66ad1b23c593b3bba4bf8a Mon Sep 17 00:00:00 2001 +From: krackout <kr@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 +@@ -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 @@ -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>