[repo.or.cz] wmaker-crm.git branch master updated: wmaker-0.96.0-72-gc6f029c94674

7 views
Skip to first unread message

crmafra

unread,
Feb 26, 2026, 5:05:09 AMFeb 26
to wmake...@googlegroups.com
This is an automated email generated because a ref change occurred in the
git repository for project wmaker-crm.git.

The branch, master has been updated
via c6f029c94674b7e87f70ec2ea387c63fab00d6a5 (commit)
from 66bf19c1e0c87e3eec4f8875eb82f775d55706cc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c6f029c94674b7e87f70ec2ea387c63fab00d6a5
Author: Roman Dobosz <gry...@gmail.com>
Date: Thu, 26 Feb 2026 08:12:16 +0100
URL: <https://repo.or.cz/wmaker-crm.git/c6f029c94674b7e8>

Make mouse wheel window focus configurable.

With commit e45a3bc07d6356f57329c214e3fb32b87ad77669 a behavior change
was introduced that may disrupt the workflow of a user who may
intentionally want to give focus to a window without bringing it to the
front. Using the scroll wheel is less intrusive compared to the left,
right, and especially the middle (in the case of a terminal) mouse
buttons.

This commit introduces the ability to change the behavior by enabling or
disabling the ability to focus a window with mouse wheel in the expert
panel.
---
WPrefs.app/Expert.c | 2 ++
src/WindowMaker.h | 1 +
src/defaults.c | 2 ++
src/window.c | 2 +-
4 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/WPrefs.app/Expert.c b/WPrefs.app/Expert.c
index d2d330289116..d3731ae49549 100644
--- a/WPrefs.app/Expert.c
+++ b/WPrefs.app/Expert.c
@@ -130,6 +130,8 @@ static struct expert_option {
{ N_("Keep dock on primary head."),
/* default: */ False, OPTION_WMAKER, "KeepDockOnPrimaryHead"},

+ { N_("Allow windows to take focus using mouse wheel."),
+ /* default: */ False, OPTION_WMAKER, "MouseWheelFocus"},
};


diff --git a/src/WindowMaker.h b/src/WindowMaker.h
index dea943b97082..f06f8015304c 100644
--- a/src/WindowMaker.h
+++ b/src/WindowMaker.h
@@ -378,6 +378,7 @@ extern struct WPreferences {
char auto_focus; /* focus window when it's mapped */
char *icon_back_file; /* background image for icons */
char enforce_icon_margin; /* auto-shrink icon images */
+ char mouse_wheel_focus; /* allow focus window with mouse wheel */

WCoord *root_menu_pos; /* initial position of the root menu*/
WCoord *app_menu_pos;
diff --git a/src/defaults.c b/src/defaults.c
index 6b6bc4c3faf9..8472eac33fe7 100644
--- a/src/defaults.c
+++ b/src/defaults.c
@@ -537,6 +537,8 @@ WDefaultEntry optionList[] = {
NULL, getPropList, setHotCornerActions, NULL, NULL},
{"WindowListAppIcons", "NO", NULL,
&wPreferences.window_list_app_icons, getBool, NULL, NULL, NULL},
+ {"MouseWheelFocus", "NO", NULL,
+ &wPreferences.mouse_wheel_focus, getBool, NULL, NULL, NULL},

/* style options */

diff --git a/src/window.c b/src/window.c
index 978f7b88bbc1..1f688cdcdf61 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2984,7 +2984,7 @@ static void frameMouseDown(WObjDescriptor *desc, XEvent *event)

CloseWindowMenu(wwin->screen_ptr);

- if (event->xbutton.button != Button4 && event->xbutton.button != Button5 && !(event->xbutton.state & ControlMask) && !WFLAGP(wwin, no_focusable))
+ if ((wPreferences.mouse_wheel_focus || (event->xbutton.button != Button4 && event->xbutton.button != Button5)) && !(event->xbutton.state & ControlMask) && !WFLAGP(wwin, no_focusable))
wSetFocusTo(wwin->screen_ptr, wwin);

if (event->xbutton.button == Button1)

-----------------------------------------------------------------------

Summary of changes:
WPrefs.app/Expert.c | 2 ++
src/WindowMaker.h | 1 +
src/defaults.c | 2 ++
src/window.c | 2 +-
4 files changed, 6 insertions(+), 1 deletion(-)


repo.or.cz automatic notification. Contact project admin crm...@gmail.com
if you want to unsubscribe, or site admin ad...@repo.or.cz if you receive
no reply.
--
wmaker-crm.git ("The Window Maker window manager")
Reply all
Reply to author
Forward
0 new messages