[gnome-shell] magnifier: Fix DND when the magnifier is active
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] magnifier: Fix DND when the magnifier is active
- Date: Fri, 3 Dec 2010 19:39:00 +0000 (UTC)
commit 35b5cb9860f78c69520f76bb42aa4a03e7896e49
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Nov 17 11:08:24 2010 +0100
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 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js
index 472fdea..91a0e77 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]