[kwin] [Bug 404643] Launching a second instance of single-instance application doesn't give focus to the running instance at Low or higher focus stealing prevention level

2019-02-27 Thread Igor Kushnir
https://bugs.kde.org/show_bug.cgi?id=404643 --- Comment #6 from Igor Kushnir --- > I recommend using existing libraries like KRun in combination with > KWindowsystem to achieve this. Way better solution than trying to reinvent > the wheel. KRun is part of KIO - a tier 3 framework with complex dep

[kwin] [Bug 404643] Launching a second instance of single-instance application doesn't give focus to the running instance at Low or higher focus stealing prevention level

2019-02-26 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=404643 --- Comment #5 from Martin Flöser --- I recommend using existing libraries like KRun in combination with KWindowsystem to achieve this. Way better solution than trying to reinvent the wheel. Also I recommend to remove everything where you try to activa

[kwin] [Bug 404643] Launching a second instance of single-instance application doesn't give focus to the running instance at Low or higher focus stealing prevention level

2019-02-26 Thread Igor Kushnir
https://bugs.kde.org/show_bug.cgi?id=404643 --- Comment #4 from Igor Kushnir --- > >How should non-KDE, pure-Qt, single-instance applications request focus on > >second instance launch to get it in all Plasma versions? > > Pass the startup ID to the second instance. See QX11Info::setNextStartup

[kwin] [Bug 404643] Launching a second instance of single-instance application doesn't give focus to the running instance at Low or higher focus stealing prevention level

2019-02-21 Thread David Edmundson
https://bugs.kde.org/show_bug.cgi?id=404643 David Edmundson changed: What|Removed |Added CC||k...@davidedmundson.co.uk --- Comment #3 from

[kwin] [Bug 404643] Launching a second instance of single-instance application doesn't give focus to the running instance at Low or higher focus stealing prevention level

2019-02-21 Thread Igor Kushnir
https://bugs.kde.org/show_bug.cgi?id=404643 --- Comment #2 from Igor Kushnir --- Do you mean that each non-KDE single-instance application should contain a duplicate KWindowSystemPrivateX11::forceActiveWindow() implementation (https://code.woboq.org/qt5/kf5/kwindowsystem/src/platforms/xcb/kwindow

[kwin] [Bug 404643] Launching a second instance of single-instance application doesn't give focus to the running instance at Low or higher focus stealing prevention level

2019-02-21 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=404643 Martin Flöser changed: What|Removed |Added Resolution|--- |NOT A BUG Status|REPORTED