window-list: Don't use panel-button class for the workspace indicator
The panel-button introduces some horizontal padding which is insensitive to scroll events. Without this change, there is a small dead zone in the corner that cannot be used to switch workspaces with the mouse wheel. For useMenu mode, this has the effect of removing all of the horizontal space to the edge of the screen, so I add some back with the status-label-bin margin. This a is similar change to8bad8a3b63. Fixes #315. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/171> (cherry picked from commitd6648b0b5c)
This commit is contained in:
committed by
Florian Müllner
parent
12eedcf6f7
commit
3bb0897bc1
@@ -82,7 +82,7 @@
|
||||
background-color: rgba(200, 200, 200, .3);
|
||||
border: 1px solid #cccccc;
|
||||
padding: 0 3px;
|
||||
margin: 3px 0;
|
||||
margin: 3px;
|
||||
}
|
||||
|
||||
.window-list-workspace-indicator .workspaces-box {
|
||||
|
||||
@@ -249,6 +249,7 @@ class WorkspaceIndicator extends PanelMenu.Button {
|
||||
super._init(0.0, _('Workspace Indicator'), true);
|
||||
this.setMenu(new PopupMenu.PopupMenu(this, 0.0, St.Side.BOTTOM));
|
||||
this.add_style_class_name('window-list-workspace-indicator');
|
||||
this.remove_style_class_name('panel-button');
|
||||
this.menu.actor.remove_style_class_name('panel-menu');
|
||||
|
||||
let container = new St.Widget({
|
||||
|
||||
Reference in New Issue
Block a user