diff options
| author | Calvin Morrison <calvin@pobox.com> | 2026-05-15 19:30:53 -0400 |
|---|---|---|
| committer | Calvin Morrison <calvin@pobox.com> | 2026-05-15 19:30:53 -0400 |
| commit | 7356b972623cc2824bb6376d58697140d40cddaa (patch) | |
| tree | f825aa26617bce31a5b32d1050e20a9066a73ee6 /src | |
| parent | f8fa47123887452f48d0b523289ca6990c8a2e25 (diff) | |
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.cpp | 4 |
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; } |
