mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
workspacesView: Consider workspaces-only-on-primary when scrolling
It is odd to switch workspaces using the scroll wheel when the pointer is on a monitor without workspaces, so only handle scroll events on non-primary monitors when workspaces-only-on-primary is disabled. https://bugzilla.gnome.org/show_bug.cgi?id=766883
This commit is contained in:
parent
e16f63a8e4
commit
2ad2853278
1 changed files with 5 additions and 0 deletions
|
|
@ -674,6 +674,11 @@ const WorkspacesDisplay = new Lang.Class({
|
|||
_onScrollEvent: function(actor, event) {
|
||||
if (!this.actor.mapped)
|
||||
return Clutter.EVENT_PROPAGATE;
|
||||
|
||||
if (this._workspacesOnlyOnPrimary &&
|
||||
this._getMonitorIndexForEvent(event) != this._primaryIndex)
|
||||
return Clutter.EVENT_PROPAGATE;
|
||||
|
||||
let activeWs = global.screen.get_active_workspace();
|
||||
let ws;
|
||||
switch (event.get_scroll_direction()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue