Commit a0385c33 authored by Marco Martin's avatar Marco Martin
Browse files

updateAllowedActions when going in/out fullscreen

when going in/out of fullscreen call updateAllowedActions to notify the
decoration of eventual allowed actions changed. this makes the shade
button reappear as needed

BUG:458844
parent 7927b17d
Pipeline #229317 failed with stage
in 12 minutes and 25 seconds
......@@ -392,7 +392,7 @@ class KWIN_EXPORT Window : public QObject
* Whether the Window can be shaded. The property is evaluated each time it is invoked.
* Because of that there is no notify signal.
*/
Q_PROPERTY(bool shadeable READ isShadeable)
Q_PROPERTY(bool shadeable READ isShadeable NOTIFY shadeableChanged)
/**
* Whether the Window is shaded.
......
......@@ -2443,7 +2443,6 @@ void X11Window::updateAllowedActions(bool force)
}
// TODO: This could be delayed and compressed - It's only for pagers etc. anyway
info->setAllowedActions(allowed_actions);
// ONLY if relevant features have changed (and the window didn't just get/loose moveresize for maximization state changes)
const NET::Actions relevant = ~(NET::ActionMove | NET::ActionResize);
if ((allowed_actions & relevant) != (old_allowed_actions & relevant)) {
......@@ -4619,6 +4618,7 @@ void X11Window::setFullScreen(bool set, bool user)
}
updateWindowRules(Rules::Fullscreen | Rules::Position | Rules::Size);
updateAllowedActions(false);
Q_EMIT clientFullScreenSet(this, set, user);
Q_EMIT fullScreenChanged();
}
......
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