[solved] swm ENABLE_MOUSE issues - Desktop Customization & Workflow

Users browsing this thread: 1 Guest(s)
tummychow
Members
Hey all, I've been experimenting with dcat's swm lately and having problems getting the ENABLE_MOUSE flag to work. I'm using an unmodified config.h, and pressing SUPER+left/right mouse on a window doesn't do anything. The event seems to just go to the window rather than being picked up by swm (eg if I drag SUPER+left mouse in a browser, it selects text, as if the SUPER key wasn't held down). Changing the modifier to one of the other keys doesn't fix the problem.

I banged my head on it for a while, and what I found was that if I set MOD to XCB_MOD_MASK_ANY, then the mouse actually does work (with any modifier combination). So it seems that xcb_grab_button is having issues with my modifier keys.

I'm not really sure what else to try from here. The OS is Arch with this PKGBUILD https://aur.archlinux.org/packages/si/simplewm/PKGBUILD. Any suggestions on how to find the root cause of this issue?

e: By the way, SLOPPY_FOCUS works fine, in case that's relevant. Mouse support in 2bwm also works fine.
srp
Long time nixers
all you need is '#define ENABLE_MOUSE' in your config.h
~Seraphim R.P.
the artistnixer formerly known as vypr formerly known as sticky
tummychow
Members
All of the testing I mentioned above was with ENABLE_MOUSE defined.
srp
Long time nixers
Okay.

Instead of using the AUR PKGBUILD, just compile from source (you only need two libs and it takes _no_ time to do it).

Then try again.

Use my config for testing, just add `#define ENABLE_MOUSE`.

https://raw.githubusercontent.com/vypr/d...wmconfig.h

But in all honesty, you should use wmutils with swm, then use something like sxhkd or xbindkeys to set it up.

I have my .sxhkd in my dottie repo on github.
~Seraphim R.P.
the artistnixer formerly known as vypr formerly known as sticky
tummychow
Members
Yeah, I've been building directly from source.

Anyway I tried your config with #define ENABLE_MOUSE line added, and still no dice. I can tell it's your config from the window border color, but the mouse resizing doesn't work.
venam
Administrators
Try with NUMLOCK off, sometimes WMs don't like the NUMLOCK modifier when used with the mouse buttons.
tummychow
Members
Oh my god. That was it. Thanks venam.
darthlukan
Members
@tummychow - Thanks for asking this question and thanks to @venam for the answer, it didn't dawn on me that I pressed numlock and that's when the mouse went wonky.
Github: https://github.com/darthlukan
CRUX Ports: http://ports.brianctomlinson.com
GPG: 3694569D
"We're all human, act accordingly." -- Me