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

Command for focusing application windows ?

Tags: None
(comma "," separated)
User avatar
LinuxFanatic
Registered Member
Posts
3
Karma
0
OS
Hi at all,

firstly many thanks to everyone behind this great KDE SC !!! :)

My question is very simple, but I can't find any useful answer/solution:

If I in example open an URL from an existing application by using
Code: Select all
kfmclient openURL 'http://www...'
than KDE is going to open the URL in the standard web-browser. But the window of the web-browser isn't focused on top. It is placed behind the application - which ran the command above ^^^ before the web-browser was started ...

So does you know any option or an command - i.e. for KWin - which lets me focus a window to the top so that other window will stay behind them ?


Regards,
Gürkan
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
As far as I can see in KWin's D-Bus API, this is not a possibility. However, the behaviour you experience should not occur.

Please try adding "sleep 5s &&" to the beginning of your command, then minimise the terminal.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
LinuxFanatic
Registered Member
Posts
3
Karma
0
OS
Hi bcooksley, sorry for my late answer (was bussy for a time ...)

bcooksley wrote:As far as I can see in KWin's D-Bus API, this is not a possibility. However, the behaviour you experience should not occur.

Please try adding "sleep 5s &&" to the beginning of your command, then minimise the terminal.

I think you misunderstand my posting above. What I'm looking for is a way to focus a Window by a command/application ... (?)

Is there any possible solution for that?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
As far as I know, it isn't possible. Some X command may exist however, or the KWin developers may know.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
dpalacio
Registered Member
Posts
240
Karma
2
OS
Try reducing the focus stealing prevention in KWin.


connect(post, SIGNAL(readSignature()), qapp, SLOT(quit()));


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], markhm, rblackwell, sethaaaa, Sogou [Bot], Yahoo [Bot]