From 7356b972623cc2824bb6376d58697140d40cddaa Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Fri, 15 May 2026 19:30:53 -0400 Subject: Fix second-instance window raise bypassing focus-steal prevention 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 --- src/ui/tmixapp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 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; } -- cgit v1.2.3