Minimze: Don't restore actor properties (#1585)

This commit is contained in:
Leo 2023-03-27 11:15:31 +09:00 committed by GitHub
parent aebe2d5139
commit ac73dfe017
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 10 deletions

View File

@ -23,6 +23,7 @@
<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/1229">Notification bubble appears in wrong corner on one workspace</issue>
<issue url="https://github.com/elementary/gala/issues/1578">Closing a window in multitasking view closes multitasking view</issue>
<issue url="https://github.com/elementary/gala/issues/1584">When 2 windows are tiled and then resized, the inactive one gets glitched, leaving its full-sized picture as an artifact when minimized</issue>
</issues>
</release>

View File

@ -1149,9 +1149,6 @@ namespace Gala {
ulong minimize_handler_id = 0UL;
minimize_handler_id = actor.transitions_completed.connect (() => {
actor.disconnect (minimize_handler_id);
actor.set_pivot_point (0.0f, 0.0f);
actor.set_scale (1.0f, 1.0f);
actor.opacity = 255U;
minimize_completed (actor);
minimizing.remove (actor);
});
@ -1267,7 +1264,10 @@ namespace Gala {
}
public override void unminimize (Meta.WindowActor actor) {
if (!enable_animations) {
var duration = AnimationDuration.HIDE;
if (!enable_animations
|| duration == 0) {
actor.show ();
unminimize_completed (actor);
return;
@ -1280,12 +1280,6 @@ namespace Gala {
switch (window.window_type) {
case Meta.WindowType.NORMAL:
var duration = AnimationDuration.HIDE;
if (duration == 0) {
unminimize_completed (actor);
return;
}
unminimizing.add (actor);
actor.set_pivot_point (0.5f, 1.0f);