How can I disable gnome window manager keyboard shortcuts for my linux game? -


i porting game linux. complex game , has lots of keyboard , mouse shortcuts finer control. 1 of shortcuts utilises alt , right mouse click, conflicts window manager functionality - namely context menu appears on machines. have tried disabling @ runtime collecting output of "gsettings org.gnome.desktop.wm.preferences mouse-button-modifier" , altering if conflict detected, hacky , works in few cases. know if there better, more reliable way of doing - preferably way of disabling shortcuts when game window active.

you can use x server code grab keyboard , lock apps window. prevent else intercepting keyboard. see example: https://tronche.com/gui/x/xlib/input/xgrabkeyboard.html

the disadvantage of taking heavy handed approach breaks things being able alt+tab out of full-screen window.

lwn has article tricks valve went through steam work in linux (http://lwn.net/articles/611969/) valve went far use ld_preload in places. had implement special overlay allow stuff alt-tab work. maybe in source code steam client see how did it.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -