LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-13-2014, 10:34 PM   #1
Abscissa256
Member
 
Registered: Aug 2011
Posts: 79

Rep: Reputation: Disabled
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?
 
Old 11-14-2014, 06:27 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Is this a gtk2 or gtk3 problem?
 
Old 11-15-2014, 06:30 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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?
 
Old 11-20-2014, 08:47 PM   #4
Abscissa256
Member
 
Registered: Aug 2011
Posts: 79

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
question is, how configurable is your wm?
...
Quote:
Originally Posted by Abscissa256 View Post
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).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Applications that receive focus in Gnome don't come to front of screen veeruk101 Linux - Newbie 3 11-26-2011 02:51 PM
[SOLVED] Ubuntu logon no response to mouse clicks or keyboard tomas8 Linux - Newbie 2 09-19-2011 10:37 AM
Counting mouse clicks/movement and keyboard presses? breadcrust Programming 10 01-23-2011 07:31 PM
How to define keyboard keys as mouse clicks? gunzzz5930 Slackware 4 11-10-2010 06:53 AM
how to make gtk programs kira Programming 1 04-28-2005 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration