Check if window can maximize before performing action (#1613)

This commit is contained in:
Leo 2023-04-04 19:26:24 +09:00 committed by GitHub
parent 66333e3cb9
commit 7599756924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@
<issue url="https://github.com/elementary/gala/issues/743">Keyboard media controls do not work when in "Show all windows" view</issue>
<issue url="https://github.com/elementary/gala/issues/913">Holding on keyboard shortcut to activate the action only once</issue>
<issue url="https://github.com/elementary/gala/issues/1059">Improper animation when use Multitasking View and Show all windows one after another</issue>
<issue url="https://github.com/elementary/gala/issues/1089">Maximise current window hot corner shouldn't maximise every app</issue>
<issue url="https://github.com/elementary/gala/issues/1229">Notification bubble appears in wrong corner on one workspace</issue>
<issue url="https://github.com/elementary/gala/issues/1347">Parity between right-clicking titlebars/headerbars on mouse and touchpad</issue>
<issue url="https://github.com/elementary/gala/issues/1387">Window menu sluggish/inoperative for apps with flathub origin</issue>

View File

@ -840,7 +840,7 @@ namespace Gala {
workspace_view.open ();
break;
case ActionType.MAXIMIZE_CURRENT:
if (current == null || current.window_type != Meta.WindowType.NORMAL)
if (current == null || current.window_type != Meta.WindowType.NORMAL || !current.can_maximize ())
break;
var maximize_flags = current.get_maximized ();