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

Get the list of windows and bring a window to front.

Tags: None
(comma "," separated)
fctorial
Registered Member
Posts
4
Karma
0
Is it possible to write a kde/kwin extension that brings one of the windows in the current desktop/workspace to the front, based on some internal logic? This extension will need to get the list of windows and currently focused window, and somehow bring one of those windows to the front. Can it be done without maintaining a slightly modified fork of kwin? If yes, what apis do I use for this. (I haven't programmed for kde before).
kde-cfeck
Registered Member
Posts
93
Karma
0
What internal logic are you interested in? Without knowing the details, it is hard to decide if you need to modify the KWin sources.

If this is simply about matching text in the title or the X11 window class, you can use wmctrl and/or xdotool in a bash script.

More control is available via KWin scripting, see https://techbase.kde.org/Development/Tu ... /Scripting


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell