Bug 317412 - Opening an app in Desktop 2 results in either focus stealing or incorrect task manager notification
Summary: Opening an app in Desktop 2 results in either focus stealing or incorrect tas...
Status: RESOLVED NOT A BUG
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-taskbar (show other bugs)
Version: 4.10.1
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-26 23:17 UTC by Woodsman
Modified: 2013-06-07 07:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Woodsman 2013-03-26 23:17:08 UTC
I have my VirtualBox machines configured to open in Desktop 2.

I have the KDE task manager configured to show only tasks from each respective desktop.

The VirtualBox windows correctly open in Desktop 2, but the window manager always changes the focus to Desktop 2. I don't want that. I want the app to start quietly in the background.

I changed the focus stealing level to something other than None. That works in that the window manager does not force the focus to Desktop 2, but then a task manager icon always appears in the Desktop 1 task bar that annoyingly flashes a few times.

As I have the task manager set to display tasks only from the current desktop, I don't know why the icon appears on Desktop 1 task bar.

Reproducible: Always

Steps to Reproduce:
1. Configure an app to open in Desktop 2.
2. Start the app.

1. Configure an app to open in Desktop 2.
2. Change the configuration focus stealing prevention to something other than None.
3. Start the app.


Actual Results:  
In the first scenario the focus changes.

In the second scenario the focus does not change but a task bar icon appears in Desktop 1.

Expected Results:  
After changing the focus prevention level, the app should open quietly in Desktop 2 with no nagging or intrusions in Desktop 1.

I was asked to file a bug report after some nominal discussion in the KDE forum (http://forum.kde.org/viewtopic.php?f=111&t=110534).

I'm probably supposed to mention something about urgency hints or flags.

I understand the focus stealing, regardless of which desktop the app is configured to open. Makes sense. That is not the fundamental bug.

Configuring the task manager to show only apps from each respective desktop also works on my system, but the flashing icon should not appear on the Desktop 1 task bar when the app is opening in Desktop 2.

The task icon text is also weirdly drop-shadowed, which I find annoying. :)

The app should open in Desktop 2, no task bar icon appearing in Desktop 1, no flashing in Desktop 1, (and no focus stealing once properly configured). Just open quietly in the background in Desktop 2.

When I'm ready to work in the virtual machine I can press Ctrl-F2.

I tried some other apps, such as LibreOffice and some native KDE apps. Same results. Either the focus changes or the nagging task bar icon appears in Desktop 1 with the weird drop shadow font.

I disabled launch feedback for the apps but the task bar icon still flashes in Desktop 1.

Please let me know if this is not filed in the appropriate category.

Thanks. :)
Comment 1 Martin Flöser 2013-06-07 07:22:55 UTC
This is the expected behavior: the window manager changes the window to demands attention. The taskbar shows all windows having demands attention state no matter which desktop they are on. Note: this is the expected behavior!

You can use this KWin script to remove demands attention from other desktops temporarily:
http://kde-look.org/content/show.php/Demands+Attention+Only+on+Current+Deskto?content=154810