mirror of
https://github.com/elementary/gala.git
synced 2024-09-11 15:15:39 +03:00
Minimze: Don't restore actor properties (#1585)
This commit is contained in:
parent
aebe2d5139
commit
ac73dfe017
@ -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/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/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/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>
|
</issues>
|
||||||
</release>
|
</release>
|
||||||
|
|
||||||
|
@ -1149,9 +1149,6 @@ namespace Gala {
|
|||||||
ulong minimize_handler_id = 0UL;
|
ulong minimize_handler_id = 0UL;
|
||||||
minimize_handler_id = actor.transitions_completed.connect (() => {
|
minimize_handler_id = actor.transitions_completed.connect (() => {
|
||||||
actor.disconnect (minimize_handler_id);
|
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);
|
minimize_completed (actor);
|
||||||
minimizing.remove (actor);
|
minimizing.remove (actor);
|
||||||
});
|
});
|
||||||
@ -1267,7 +1264,10 @@ namespace Gala {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override void unminimize (Meta.WindowActor actor) {
|
public override void unminimize (Meta.WindowActor actor) {
|
||||||
if (!enable_animations) {
|
var duration = AnimationDuration.HIDE;
|
||||||
|
|
||||||
|
if (!enable_animations
|
||||||
|
|| duration == 0) {
|
||||||
actor.show ();
|
actor.show ();
|
||||||
unminimize_completed (actor);
|
unminimize_completed (actor);
|
||||||
return;
|
return;
|
||||||
@ -1280,12 +1280,6 @@ namespace Gala {
|
|||||||
|
|
||||||
switch (window.window_type) {
|
switch (window.window_type) {
|
||||||
case Meta.WindowType.NORMAL:
|
case Meta.WindowType.NORMAL:
|
||||||
var duration = AnimationDuration.HIDE;
|
|
||||||
if (duration == 0) {
|
|
||||||
unminimize_completed (actor);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
unminimizing.add (actor);
|
unminimizing.add (actor);
|
||||||
|
|
||||||
actor.set_pivot_point (0.5f, 1.0f);
|
actor.set_pivot_point (0.5f, 1.0f);
|
||||||
|
Loading…
Reference in New Issue
Block a user