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

How to change process priority depending on window state?

Tags: None
(comma "," separated)
User avatar
pavel
Registered Member
Posts
134
Karma
1
OS
I want to configure some applications/windows in such a way:
  • When window becomes inactive (focus goes to another one), the process of this window should decrease priority (become less prioritized).
  • When window becomes active again, the priority of the process should return to initial state.
I doubt if this feature exists, but I want to ensure.


pavel, proud to be a member of KDE forums since 2008-Dec.
mgraesslin
KDE Developer
Posts
572
Karma
7
OS
no such a feature does not exist and I doubt it would work. You don't have a 1:1 mapping between window and process. E.g. all konsole windows belong to one process, all Kontact windows belong to one process. Even for normal dialogs it wouldn't work: the main window loses focus when a dialog is opened.
User avatar
pavel
Registered Member
Posts
134
Karma
1
OS
In KWin there are settings, applied to whole application instead of sole windows. So, described behavior can be applied to applications this way, isn't it?

As I understand, the application and process are usually mapped as 1:1?


pavel, proud to be a member of KDE forums since 2008-Dec.
mgraesslin
KDE Developer
Posts
572
Karma
7
OS
no, application in kwin window specific rules means for example all firefox instances. The mapping between windows and processes is rather bad in X11.
User avatar
pavel
Registered Member
Posts
134
Karma
1
OS
If all the firefox instances are not focused, they should be reniced. If One is in focus - all the firefox instances should not be reniced. I think it would be better then full absence of priority control.


pavel, proud to be a member of KDE forums since 2008-Dec.
natedigby21
Registered Member
Posts
1
Karma
0
mgraesslin wrote:no such a feature does not exist and I doubt it would work. You don't have a 1:1 mapping between window and process. E.g. all konsole windows belong to one process, all Kontact windows belong to one process. Even for normal dialogs it wouldn't work: the main window loses focus when a dialog is opened.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]