panel: Don't try to begin a grab op while something else has taken a grab

https://bugzilla.gnome.org/show_bug.cgi?id=694241
This commit is contained in:
Jasper St. Pierre 2013-02-19 20:27:11 -05:00
parent d3f978a19d
commit 3db253998b

View File

@ -1065,6 +1065,9 @@ const Panel = new Lang.Class({
},
_onButtonPress: function(actor, event) {
if (Main.modalCount > 0)
return false;
if (event.get_source() != actor)
return false;