[gnome-shell/wip/carlosg/fix-pad-svg: 1/2] windowManager: Ensure window coords match frame rect after unminimize
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/fix-pad-svg: 1/2] windowManager: Ensure window coords match frame rect after unminimize
- Date: Fri, 26 Apr 2019 11:32:31 +0000 (UTC)
commit fec345598eee8273f181a9dccb4958cc8368d9f5
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Apr 17 23:53:29 2019 +0200
windowManager: Ensure window coords match frame rect after unminimize
If the window changes state during the unminimize animation (eg. because it
actually has to restore to fullscreen state), the destination coordinates
of the actor may change before the done callback. Just sync directly in that
case.
js/ui/windowManager.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index b9f5fef46..265c00fc0 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -1446,6 +1446,9 @@ var WindowManager = class {
}
_unminimizeWindowDone(shellwm, actor) {
+ let rect = actor.meta_window.get_frame_rect();
+ actor.set_position(rect.x, rect.y);
+
if (this._removeEffect(this._unminimizing, actor)) {
Tweener.removeTweens(actor);
actor.set_scale(1.0, 1.0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]