[gnome-shell] xdndHandler: prevent dummy actor from interfering with Hot Corner
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] xdndHandler: prevent dummy actor from interfering with Hot Corner
- Date: Fri, 10 Feb 2012 20:26:15 +0000 (UTC)
commit 138b8cf874aa042b6eccd24b1eeed8b00addd121
Author: Stefano Facchini <stefano facchini gmail com>
Date: Fri Feb 10 20:18:35 2012 +0100
xdndHandler: prevent dummy actor from interfering with Hot Corner
Since the dummy actor occupies exactly the same area of the Hot Corner,
it can be erroneously picked during xdnd operations. Fix this by
hiding it from pick.
https://bugzilla.gnome.org/show_bug.cgi?id=669831
js/ui/xdndHandler.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/xdndHandler.js b/js/ui/xdndHandler.js
index 26f5432..dede07e 100644
--- a/js/ui/xdndHandler.js
+++ b/js/ui/xdndHandler.js
@@ -17,6 +17,7 @@ const XdndHandler = new Lang.Class({
// Used as a drag actor in case we don't have a cursor window clone
this._dummy = new Clutter.Rectangle({ width: 1, height: 1, opacity: 0 });
global.stage.add_actor(this._dummy);
+ Shell.util_set_hidden_from_pick(this._dummy, true);
this._dummy.hide();
// Mutter delays the creation of the output window as long
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]