Commit e99f8bcb authored by Xaver Hugl's avatar Xaver Hugl Committed by Vlad Zahorodnii
Browse files

wayland: don't allow maximization of applet popups


(cherry picked from commit 22e6b944)
parent 36099b2f
Pipeline #245972 failed with stage
in 22 minutes and 10 seconds
......@@ -706,7 +706,7 @@ bool XdgToplevelWindow::isFullScreenable() const
bool XdgToplevelWindow::isMaximizable() const
{
if (!isResizable()) {
if (!isResizable() || isAppletPopup()) {
return false;
}
if (rules()->checkMaximize(MaximizeRestore) != MaximizeRestore || rules()->checkMaximize(MaximizeFull) != MaximizeFull) {
......@@ -1648,7 +1648,7 @@ void XdgToplevelWindow::changeMaximize(bool horizontal, bool vertical, bool adju
return;
}
if (!isResizable()) {
if (!isResizable() || isAppletPopup()) {
return;
}
......
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