Fwd: .cwmrc - using mouse wheel to cycle windows
Pavan Maddamsetti
pavan.maddamsetti at gmail.com
Sun Jul 2 21:27:52 UTC 2017
Hi,
I have attempted to move forward on the following issue using xev,
reading the X11 source code, and manual pages. So far I am not able to
understand what is causing the issue.
Can any X hackers help me with this? My mouse bindings only seem to
work when the cursor is not hovering over a window.
Thanks.
---------- Forwarded message ----------
From: Pavan Maddamsetti <pavan.maddamsetti at gmail.com>
Date: Sat, 1 Jul 2017 20:05:24 -0400
Subject: .cwmrc - using mouse wheel to cycle windows
To: misc <misc at openbsd.org>
Hi,
I am having some trouble configuring cwm. What I want is the following
.cwmrc to work:
bind-mouse M-4 window-rcycle
bind-mouse M-5 window-cycle
What this is supposed to do is, holding Alt and scrolling the mouse
wheel will let you cycle between windows. So let's say you have
chromium open. If you hover over the tabs, scrolling switches between
tabs. Now if I have an xterm open, I want to be able to press Alt and
switch windows with the mouse wheel.
Unfortunately, the mouse bindings appear to only work if the cursor is
not currently hovering over a window. So for example, if you bind M-4
and M-5 to quit cwm, these bindings are not in effect if the mouse is
over the browser window. Instead, the mouse wheel scrolls normally.
Even if I leave some screen space available to move the cursor there
and execute actions, it won't work with the cwm functions
window-rcycle and window-cycle. Why not? Because the cursor snaps to
the center of the window it cycled to. So now you can't keep cycling.
Any help with this issue would be appreciated.
More information about the xorg
mailing list