messageTray: Use the bottom monitor's fullscreen state for rate limiting

It makes more sense to use the monitor the tray is on, rather than the
primary monitor. This also matches us with whether we can open the tray
from a barrier/dwell or not.

https://bugzilla.gnome.org/show_bug.cgi?id=695659
This commit is contained in:
Jasper St. Pierre
2013-03-11 15:57:32 -04:00
parent 78dacfa865
commit 725a36e37a
2 changed files with 4 additions and 8 deletions

View File

@ -976,8 +976,9 @@ const LayoutManager = new Lang.Class({
!metaWindow.appears_focused)
metaWindow.minimize();
}
this.emit('primary-fullscreen-changed', this.primaryMonitor.inFullscreen);
}
this.emit('fullscreen-changed');
},
_updateRegions: function() {