jichu4n / basic_wm

An example basic X11 window manager.
495 stars 72 forks source link

Shortcuts not working #1

Open Litarvan opened 7 years ago

Litarvan commented 7 years ago

I do CTRL + SHIFT to grab mouse/keyboard, but when i do the shortcuts in the README, nothing happen

Litarvan commented 7 years ago

So ?

moaxcp commented 6 years ago

It is not obvious to me what you are trying to do. What application are you running the window manager in?

Litarvan commented 6 years ago

Xephyr, as it is described in https://github.com/jichu4n/basic_wm/blob/master/build_and_run.sh

ajh123 commented 3 years ago

Have your mouse pointer in the Xephyr window and do CTRL+SHIFT, then try the shortcuts like ALT+F4.

Litarvan commented 3 years ago

It does nothing, that's why I opened the issue

moaxcp commented 3 years ago

What @ajh123 is asking is if you pressed CTRL+SHIFT in the Xephyr window. This needs to happen so Xephyr captures your keyboard input rather than you normal window manager. The title of the Xephyr window will change to indicate if it is capturing input.

GRFreire commented 3 years ago

Same thing here. Xephyr is capturing my input and it is still not working. Any ideas on what I am doing wrong?

GRFreire commented 3 years ago

For some reason adding Mod2Mask solved for me. Hope it's helpful for you guys too.

gramcracker commented 3 years ago

I'm having the same problem. I also got it to work by changing all occurrences of Mod1Mask to Mod2Mask. Mod 2 is supposed to be the number lock, so it causes my right clicks to resize the window, and right clicks to move it, I'm assuming since I have no numlock? That still doesn't explain why this doesn't work with alt.

gramcracker commented 3 years ago

I just tested it with a different keyboard, and turning off the numlock fixed the problem for me. Apparently with it on, the key combo becomes Mod2Mask + Mod1Mask + button1, which won't trigger the event.