LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Make GTK programs receive clicks regardless of keyboard focus? (https://www.linuxquestions.org/questions/linux-software-2/make-gtk-programs-receive-clicks-regardless-of-keyboard-focus-4175525359/)

Abscissa256 11-13-2014 10:34 PM

Make GTK programs receive clicks regardless of keyboard focus?
 
Running KDE4 here (not sure if that matters), but I've noticed that a bunch of GTK programs will frequently ignore my first click on a button or other UI element. Particularly, if a different window previously had focus, or if a popup control was being shown.

For example: In the Quod Libet music player (a GTK based program): Clicking the volume button brings up a volume slider popup. While that slider popup is onscreen, clicking any of the Play/Pause/etc buttons will close the volume slider popup (as expected), but the button clicked will completely fail to register the click. I've noticed similar things in other GTK software. Haven't noticed it in Qt stuff.

In KDE's control panel, there's a setting to make focus work as I'm looking for (for whatever is clicked to actually receive the click regardless of whether or not it has keyboard focus). But it seems that GTK isn't affected (or at least isn't always affected).

So, is there some way to make GTK programs behave the same way? Ie, for GUI controls to receive clicks regardless of whether they have keyboard focus?

Keith Hedger 11-14-2014 06:27 PM

Is this a gtk2 or gtk3 problem?

ondoho 11-15-2014 06:30 AM

quodlibet is gtk3, but it's your window manager that is handlig these things.
by sheer coincidence, i was setting up an icewm box last night and icewm has this feature.
many more wm's have it, i guess.
question is, how configurable is your wm?

Abscissa256 11-20-2014 08:47 PM

Quote:

Originally Posted by ondoho (Post 5270080)
question is, how configurable is your wm?

...
Quote:

Originally Posted by Abscissa256 (Post 5269531)
In KDE's control panel, there's a setting to make focus work as I'm looking for (for whatever is clicked to actually receive the click regardless of whether or not it has keyboard focus). But it seems that GTK isn't affected (or at least isn't always affected).



All times are GMT -5. The time now is 09:40 AM.