Skip to content

Commit 4bb4ad2

Browse files
committed
gwl: Listen to the scrollBox allocation signal to update the scroll buttons visibility
This avoids issues with improper representation of the current allocation after the buttons are hidden.
1 parent 2beccea commit 4bb4ad2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

files/usr/share/cinnamon/applets/[email protected]/workspace.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ class Workspace {
121121
this.signals.connect(this.container, 'allocation-changed', this.updateScrollVisibility, this);
122122
this.signals.connect(this.container, 'notify::translation-x', this.updateScrollVisibility, this);
123123
this.signals.connect(this.container, 'notify::translation-y', this.updateScrollVisibility, this);
124+
this.signals.connect(this.scrollBox, 'notify::allocation', this.updateScrollVisibility, this);
124125
this.signals.connect(this.actor, 'scroll-event', (actor, event) => this.onScroll(event));
125126

126127
this.on_orientation_changed(this.state.orientation);

0 commit comments

Comments
 (0)