[gnome-shell/gnome-3-0] workspace: End zooming when starting a window drag
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-0] workspace: End zooming when starting a window drag
- Date: Wed, 25 May 2011 19:58:15 +0000 (UTC)
commit 70ab08aefd1d4a335a5256480dbc5f677183a1f1
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed May 11 17:43:25 2011 -0400
workspace: End zooming when starting a window drag
The mouse-wheel zooming "easter egg" breaks horribly when you
drag a window, due to ugly lightbox reparenting tricks it uses.
For now, just end any zoom before we drag the window around.
https://bugzilla.gnome.org/show_bug.cgi?id=649632
js/ui/workspace.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index 2d48766..92f2cf5 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -296,6 +296,9 @@ WindowClone.prototype = {
},
_onDragBegin : function (draggable, time) {
+ if (this._zooming)
+ this._zoomEnd();
+
[this.dragOrigX, this.dragOrigY] = this.actor.get_position();
this.dragOrigScale = this.actor.scale_x;
this.inDrag = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]