LinuxQuestions.org
Review your favorite Linux distribution.
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, 11: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, 07:27 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,652

Rep: Reputation: 661Reputation: 661Reputation: 661Reputation: 661Reputation: 661Reputation: 661
Is this a gtk2 or gtk3 problem?
 
Old 11-15-2014, 07:30 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 9,911
Blog Entries: 7

Rep: Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438
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, 09: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:51 PM
[SOLVED] Ubuntu logon no response to mouse clicks or keyboard tomas8 Linux - Newbie 2 09-19-2011 11:37 AM
Counting mouse clicks/movement and keyboard presses? breadcrust Programming 10 01-23-2011 08:31 PM
How to define keyboard keys as mouse clicks? gunzzz5930 Slackware 4 11-10-2010 07:53 AM
how to make gtk programs kira Programming 1 04-28-2005 08:34 AM

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

All times are GMT -5. The time now is 08:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration