Commit fd101540 authored by Christoph Cullmann's avatar Christoph Cullmann

use same code as dolphin for window raising

works fine for me, too, even for minimized windows

BUG: 407288
parent 49bc7068
......@@ -24,6 +24,8 @@
#include "katemainwindow.h"
#include "katedebug.h"
#include <KStartupInfo>
#include <KWindowSystem>
KateAppAdaptor::KateAppAdaptor(KateApp *app)
......@@ -44,7 +46,8 @@ void KateAppAdaptor::activate()
win->activateWindow();
// try to raise window, see bug 407288
KWindowSystem::raiseWindow(win->winId());
KStartupInfo::setNewStartupId(win, KStartupInfo::startupId());
KWindowSystem::activateWindow(win->effectiveWinId());
}
bool KateAppAdaptor::openUrl(const QString &url, const QString &encoding)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment