Commit 6185b7bb authored by Volker Krause's avatar Volker Krause
Browse files

Port away from deprecated KWindowSystem methods.

parent 3b036b53
......@@ -2335,7 +2335,7 @@ qCDebug(KALARM_LOG)<<"full="<<full<<", screen="<<mScreenNumber;
if (modal)
{
const WId activeId = KWindowSystem::activeWindow();
const KWindowInfo wi = KWindowSystem::windowInfo(activeId, NET::WMState);
const KWindowInfo wi = KWindowInfo(activeId, NET::WMState);
if (wi.valid() && wi.hasState(NET::FullScreen))
return false; // the active window is full screen.
}
......
......@@ -134,7 +134,7 @@ void KAlarmPrefDlg::display()
else
{
#if KDEPIM_HAVE_X11
KWindowInfo info = KWindowSystem::windowInfo(mInstance->winId(), NET::WMGeometry | NET::WMDesktop);
KWindowInfo info = KWindowInfo(mInstance->winId(), NET::WMGeometry | NET::WMDesktop);
KWindowSystem::setCurrentDesktop(info.desktop());
#endif
mInstance->setWindowState(mInstance->windowState() & ~Qt::WindowMinimized); // un-minimize it if necessary
......
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