Commit e2f98f81 authored by Nicolas Fella's avatar Nicolas Fella Committed by Carl Schwan
Browse files

Simplify window activation code

parent f19b1a7c
Pipeline #175422 passed with stage
in 3 minutes and 36 seconds
......@@ -44,12 +44,8 @@ using namespace KCalendarCore;
static void raiseWindow(QWindow *window)
{
if (KWindowSystem::isPlatformWayland()) {
KWindowSystem::setCurrentXdgActivationToken(qEnvironmentVariable("XDG_ACTIVATION_TOKEN"));
KWindowSystem::activateWindow(window->winId());
} else {
window->raise();
}
KWindowSystem::updateStartupId(window);
KWindowSystem::activateWindow(window);
}
int main(int argc, char *argv[])
......
Supports Markdown
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