summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@pobox.com>2026-05-15 19:30:53 -0400
committerCalvin Morrison <calvin@pobox.com>2026-05-15 19:30:53 -0400
commit7356b972623cc2824bb6376d58697140d40cddaa (patch)
treef825aa26617bce31a5b32d1050e20a9066a73ee6 /src
parentf8fa47123887452f48d0b523289ca6990c8a2e25 (diff)
Fix second-instance window raise bypassing focus-steal preventionHEADmaster
Replace raise()+setActiveWindow() with KWin::forceActiveWindow(), which sends _NET_ACTIVE_WINDOW at pager priority so the WM brings the window to the front instead of flashing the taskbar. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src')
-rw-r--r--src/ui/tmixapp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/tmixapp.cpp b/src/ui/tmixapp.cpp
index 628e475..20c509e 100644
--- a/src/ui/tmixapp.cpp
+++ b/src/ui/tmixapp.cpp
@@ -1,5 +1,6 @@
#include "tmixapp.h"
#include "mixerwindow.h"
+#include <twin.h>
TmixApp::TmixApp() : KUniqueApplication(), m_win(0), m_firstInstance(true) {}
@@ -11,8 +12,7 @@ int TmixApp::newInstance()
}
if ( m_win ) {
m_win->show();
- m_win->raise();
- m_win->setActiveWindow();
+ KWin::forceActiveWindow( m_win->winId() );
}
return 0;
}