nixers
[solved] swm ENABLE_MOUSE issues - Printable Version
+- nixers (https://nixers.net)
+-- Forum: Desktop Customization, Efficiency, and Aesthetics (https://nixers.net/Forum-Desktop-Customization-Efficiency-and-Aesthetics)
+--- Forum: Desktop Customization & Workflow (https://nixers.net/Forum-Desktop-Customization-Workflow)
+--- Thread: [solved] swm ENABLE_MOUSE issues (/Thread-solved-swm-ENABLE-MOUSE-issues)


[solved] swm ENABLE_MOUSE issues - tummychow - 17-05-2015

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.


RE: swm ENABLE_MOUSE issues - srp - 17-05-2015

all you need is '#define ENABLE_MOUSE' in your config.h


RE: swm ENABLE_MOUSE issues - tummychow - 17-05-2015

All of the testing I mentioned above was with ENABLE_MOUSE defined.


RE: swm ENABLE_MOUSE issues - srp - 17-05-2015

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/dottie/master/swmconfig.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.


RE: swm ENABLE_MOUSE issues - tummychow - 17-05-2015

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.


RE: swm ENABLE_MOUSE issues - venam - 18-05-2015

Try with NUMLOCK off, sometimes WMs don't like the NUMLOCK modifier when used with the mouse buttons.


RE: swm ENABLE_MOUSE issues - tummychow - 18-05-2015

Oh my god. That was it. Thanks venam.


RE: [solved] swm ENABLE_MOUSE issues - darthlukan - 14-09-2015

@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.