This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Device notifier focus stealing

Tags: None
(comma "," separated)
User avatar
beermad
Registered Member
Posts
104
Karma
0
OS

Device notifier focus stealing

Fri Jan 09, 2009 2:11 pm
Whenever I plug in a new USB device, the device notifier pops up (good) but steals focus from whatever I'm doing (bad). This is annoying in two ways; first if I'm typing then suddenly I'm not typing any more. Second, if I want to launch something to handle the device I've just plugged in, it causes me to need an extra mouse click, because while it's got focus, the only thing a click elsewhere on the desktop will do is to close the notifier. So instead of being able to just click once on a launcher I have to click twice.

Is there any way to stop it stealing focus? there's nothing in the (very minimal) configuration options for the notifier itself...


User avatar
sayakb
Administrator
Posts
1973
Karma
12
OS

RE: Device notifier focus stealing

Fri Jan 09, 2009 9:25 pm
Try out System Settings -> Window Behavior -> Focus stealing prevention level, and see if setting it to a "Normal" or higher level helps.


User avatar
Hans
Administrator
Posts
3304
Karma
24
OS

RE: Device notifier focus stealing

Fri Jan 09, 2009 9:40 pm
And if you only want to change it for a specific "window": System Settings -> Window Behavior -> Window-Specific -> New... -> Workarounds. Check "Focus stealing prevention and choose "Force", "High/Extreme".
Then you have to set the window in Window/Window Extra tab.

At least I think that's what this setting do. If I've got it reversed, please correct me.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
beermad
Registered Member
Posts
104
Karma
0
OS

RE: Device notifier focus stealing

Sat Jan 10, 2009 11:41 am
Hans wrote:And if you only want to change it for a specific "window": System Settings -> Window Behavior -> Window-Specific -> New... -> Workarounds. Check "Focus stealing prevention and choose "Force", "High/Extreme".
Then you have to set the window in Window/Window Extra tab.

At least I think that's what this setting do. If I've got it reversed, please correct me.


Thanks, I can see the logic behind this, but any idea what window class to set? Annoyingly, "Detect Window Properties" fails to actually detect anything when I click on the device notifier pop-up.


User avatar
Hans
Administrator
Posts
3304
Karma
24
OS

RE: Device notifier focus stealing

Sat Jan 10, 2009 12:05 pm
Weird. I just tried it, and the Device notifier doesn't steal focus here. My Focus stealing prevention level is set to "Low".

When I use "Detect Window Properties", I get:
Window class: Qt-subapplication Plasma
Window type: Override type (this doesn't seem to be right)
Window title: Qt-subapplication

Obviously, this applies to all plasma "popups" (if you chose window type "Normal").

Running KDE4 from trunk.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
beermad
Registered Member
Posts
104
Karma
0
OS

RE: Device notifier focus stealing

Sat Jan 10, 2009 12:21 pm
Hans wrote:Weird. I just tried it, and the Device notifier doesn't steal focus here. My Focus stealing prevention level is set to "Low".

When I use "Detect Window Properties", I get:
Window class: Qt-subapplication Plasma
Window type: Override type (this doesn't seem to be right)
Window title: Qt-subapplication

Obviously, this applies to all plasma "popups" (if you chose window type "Normal").

Running KDE4 from trunk.


Unfortunately no difference here, whether I use what you managed to detect for window-specific or set the general focus stealing prevention level to "extreme" (tried re-starting KDE in case that was necessary).

I'm assuming that when your posting says "Running KDE4 from trunk" that might mean you're running a newer version than my Kubuntu-supplied 4.1.3 - perhaps this is a behaviour that's been fixed in 4.2?




Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]