Commit d8b6a162 authored by David Faure's avatar David Faure

NET::StaysOnTop -> NET::KeepAbove (since 5.0)

parent 74159e13
...@@ -617,7 +617,7 @@ QVariant XWindowTasksModel::data(const QModelIndex &index, int role) const ...@@ -617,7 +617,7 @@ QVariant XWindowTasksModel::data(const QModelIndex &index, int role) const
} else if (role == IsMinimized) { } else if (role == IsMinimized) {
return d->windowInfo(window)->isMinimized(); return d->windowInfo(window)->isMinimized();
} else if (role == IsKeepAbove) { } else if (role == IsKeepAbove) {
return d->windowInfo(window)->hasState(NET::StaysOnTop); return d->windowInfo(window)->hasState(NET::KeepAbove);
} else if (role == IsKeepBelow) { } else if (role == IsKeepBelow) {
return d->windowInfo(window)->hasState(NET::KeepBelow); return d->windowInfo(window)->hasState(NET::KeepBelow);
} else if (role == IsFullScreenable) { } else if (role == IsFullScreenable) {
...@@ -849,10 +849,10 @@ void XWindowTasksModel::requestToggleKeepAbove(const QModelIndex &index) ...@@ -849,10 +849,10 @@ void XWindowTasksModel::requestToggleKeepAbove(const QModelIndex &index)
NETWinInfo ni(QX11Info::connection(), window, QX11Info::appRootWindow(), NET::WMState, NET::Properties2()); NETWinInfo ni(QX11Info::connection(), window, QX11Info::appRootWindow(), NET::WMState, NET::Properties2());
if (info->hasState(NET::StaysOnTop)) { if (info->hasState(NET::KeepAbove)) {
ni.setState(NET::States(), NET::StaysOnTop); ni.setState(NET::States(), NET::KeepAbove);
} else { } else {
ni.setState(NET::StaysOnTop, NET::StaysOnTop); ni.setState(NET::KeepAbove, NET::KeepAbove);
} }
} }
......
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