From 35b5cb9860f78c69520f76bb42aa4a03e7896e49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 17 Nov 2010 11:08:24 +0100 Subject: [PATCH] magnifier: Fix DND when the magnifier is active Hide the zoom regions from pick so that they do not interfere with the picking done by DND in search for _delegate objects. https://bugzilla.gnome.org/show_bug.cgi?id=634560 --- js/ui/magnifier.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index 472fdea59..91a0e773f 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -896,6 +896,9 @@ ZoomRegion.prototype = { this._magView = new St.Bin({ style_class: 'magnifier-zoom-region', x_fill: true, y_fill: true }); global.stage.add_actor(this._magView); + // hide the magnified region from CLUTTER_PICK_ALL + Shell.util_set_hidden_from_pick (this._magView, true); + // Append a Clutter.Group to clip the contents of the magnified view. let mainGroup = new Clutter.Group({ clip_to_allocation: true }); this._magView.set_child(mainGroup);