FrozenSand / UrbanTerror4

Official bug tracker for the game Urban Terror 4.x - www.urbanterror.info
77 stars 18 forks source link

cannot switch workspaces in i3wm with the game on top #403

Open oddcoder opened 7 years ago

oddcoder commented 7 years ago

Looks like the game grab the keyboard somehow and it is not possible to switch workspaces while the game is running .. The only way to switch workspaces in i3wm is by using mod key which is either Super key or Alt key ... none of them worked.

mickael9 commented 7 years ago

When r_fullscreen is 0 you can release the grab by opening the console or pressing Alt-Tab. You can still put the game in fullscreen mode with Mod+F or automatically in your i3 config:

for_window [class="^urbanterror$"] fullscreen

Then you can try mapping your super key to /toggleconsole (e.g. /bind WINDOWS toggleconsole). This way the console opens when you press down on Mod and the grab is released.

Alternatively, you might want to give my build a try. It uses SDL2 and doesn't exclusively grab the keyboard.

ThomasBrierley commented 7 years ago

Yup I find when in windowed mode and the console is open i3 has full keyboard priority.

Annoyingly though in windowed mode even though UrT starts up in floating mode, i3Status seems to push the window down some arbitrary number of pixels, so you have to open the console and use your i3 full screen bind.

oddcoder commented 7 years ago

I figured out how to fix it, UT4 doesn't seam to grab alt+tab so I remapped that to swich workspace