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

Apps like ownCloud and KeePassX open in background

Tags: None
(comma "," separated)
User avatar
Sudhir Khanger
Registered Member
Posts
237
Karma
0
OS
Hello,

ownCloud client, KeePassX, etc. sit in my system tray. When I click the icon in system tray they open in background and then I have to bring them to foreground by clicking their icon in taskbar. This is very inconvenient. Is there a way to make them open in foreground.

Also, I couldn't find anything in docs regarding System Settings > Window Behavior > Window Behavior so my messups have not resulted in any success.

Thanks.
luebking
Karma
0
RMB click the titlebar and make "more actions"/"special window setting ..."
Force the focus stealing prevention to "none" (last page) and evtl. set the dialog to "keep above" (3rd tab)

In case this is KWin from KF5, this might be a bug that was fixed recently - in case of KDE4, this just means the application forgets to update its usertime, resp. an issue w/ SNI (this depends on what kind of systemtray that actually is)
User avatar
Sudhir Khanger
Registered Member
Posts
237
Karma
0
OS
luebking wrote:RMB click the titlebar and make "more actions"/"special window setting ..."
Force the focus stealing prevention to "none" (last page) and evtl. set the dialog to "keep above" (3rd tab)


Right-click titilebar
More Actions > Special Window Settings
Appearance & Fixes > Focus stealing prevention - Force and None

I lost you at "and evtl. set the dialog to "keep above" (3rd tab)". I don't know what you meant by "and evtl". And I don't see Dialog in 3rd tab which is Arrangement & Access.

Should I not be using Special Application Settings so that all instances of the application stick to it?

What is making all apps open themselves in background Transmission, KeePassX, ownCloud client, etc.?
luebking
Karma
0
You might eventually want to set the dialog to "keep above" (all other windows) in the 3rd tab of the special window settings.

You probably do not want to apply the FSP/None to all windows of the client, if only the dialog doesn't show up in front.

> What is making all apps open themselves in background
*All*? Or "all my systray"?
User avatar
Sudhir Khanger
Registered Member
Posts
237
Karma
0
OS
luebking wrote:You might eventually want to set the dialog to "keep above" (all other windows) in the 3rd tab of the special window settings.

You probably do not want to apply the FSP/None to all windows of the client, if only the dialog doesn't show up in front.

> What is making all apps open themselves in background
*All*? Or "all my systray"?


When an app is opened from system tray icon 95% of time they open in background. If I set FSP to Medium in Window Behavior in System Settings some would open in background and some would open in foreground.

I am not sure what dialog are you talking about in 3rd tab of special window settings.

Image
luebking
Karma
0
> I am not sure what dialog are you talking about in 3rd tab of special window settings.
The "arrangement & access" tab.

> If I set FSP to Medium in Window Behavior in System Settings some would open in background and some would open in foreground.
Err... the default is "low" - and it's for a good reason. If you set it to "high" a window must be really eager to get the focus, because in doubt, it will not.

Those which work w/ "medium" set a sane usertime on the dialog, those which do not, simply don't (the difference beteween "medium" and "high" is ""in doubt, yes" / "in doubt, no")
User avatar
Sudhir Khanger
Registered Member
Posts
237
Karma
0
OS
I did these two things that made it work for now.

1. Set Focus Stealing Prevention in WIndow Behavior in SystemSettings to Medium.
2. Set Focus Stealing Prevention to Force and None in Special Window Settings of all apps that you want to come in foreground that are triggered from system tray.

I am still not sure how this is going to play with Activities. I will try it for a few days and see if there are any edge cases.
User avatar
Sudhir Khanger
Registered Member
Posts
237
Karma
0
OS
luebking wrote:> I am not sure what dialog are you talking about in 3rd tab of special window settings.
The "arrangement & access" tab.


I am on the Arrangement & Access tab. I don't see anything labeled as Dialog. I see Keep Above which has 5 options from Do Not Affect to Force Temporarily. Is that what you are talking about?
User avatar
Sudhir Khanger
Registered Member
Posts
237
Karma
0
OS
Okay so it is not limited to system tray apps. When I open terminal from Dolphin using the toolbar action "Open Terminal" it also opens in background. Looks like there must be something fishy going on with KDE focus thing. It is not very convenient to change settings in each application you use.
luebking
Karma
0
There's nothing fishy, this is a very particular issue of dolphin ./. konsole:
Dolphin "starts" konsole, konsole notices that there's already an instance (it will never happen with the FIRST konsole window) and opens a new window in that process.
The dolphin usertime is ahead of the OLD konsole process usertime (you just clicked dolphin), thus konsole doesn't get active (you're apparently currently working in dolphin)
Also the WM cannot know that your recent action in dolphin opened a konsole window (this is the major reason why docks never get the focus as far as the WM is concerned)

I don't know how dolphin starts konsole, but either dolphin has to ensure the konsole window gets the focus (dolphin is the only element that knows that "now start and activate a new konsole") or konsole does to fake a brand new window (like it was a new process) when adding a window via a second invocation.

"Medium" is still not the default and will likely be too strict for your needs. Unless you know why, set the global value to "low" (the default)

> I don't see anything labeled as Dialog.
The dialog is what this special window rules belong to and that you would configure the "keep above" state for.
User avatar
Sudhir Khanger
Registered Member
Posts
237
Karma
0
OS
As much as I am impressed with you reasoning. Changing each window's setting is not something I am very inclined to do. That's just not very convenient and currently I don't see anything that is do this and it will work. I am a little exasperated with the complexity of KDE at the moment. It might be a good time to step away and try some other DE.

Thank you very much for your patience.
luebking
Karma
0
you can just lower global fsp to none if you want. (the plain netwm behavior)
using an optional feature to even *raise* global fsp and complaining about the results seems a bit irrationale to me.

you should use whatever software suits you best. you don't have to excuse for and it isn't a threat to anyone.
User avatar
Sudhir Khanger
Registered Member
Posts
237
Karma
0
OS
luebking wrote:you can just lower global fsp to none if you want. (the plain netwm behavior)
using an optional feature to even *raise* global fsp and complaining about the results seems a bit irrationale to me.

you should use whatever software suits you best. you don't have to excuse for and it isn't a threat to anyone.


When something that should have been working is not working or suddenly stops working I am not sure what else to do than complain about it. If too many such things show up I am not sure what else to do than walk away.

Please do not give yourself so much importance that I am threatening you or anyone. It is a piece of technology. Please don't make it about you and me.
luebking
Karma
0
IT IS NOT WORKING BECAUSE YOU ALTERED A SETTING.

Was that clear enough?

Run "kcmshell4 kwinoptions" and set focus stealing prevention to "none" - you'll get the openbox/whatever behavior.

And I don't feel threatened by you.
I don't know you. I don't care about you.

I was simply trying to give you advice on your issue and ultimately to release you form feeling to have to excuse for "try some other DE", since nobody here would even remotely feel offended by that.

But I'm sorry I did - I should simply have left you alone.
luebking
Karma
0
PS, just tried openbox - a second konsole window won't get the focus there either. But I wish you much luck nevertheless.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft