[gnome-shell/gbsneto/workspace-fixes-pt1] workspacesView: Update visibily when gesture drag begins
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/workspace-fixes-pt1] workspacesView: Update visibily when gesture drag begins
- Date: Fri, 10 Jul 2020 14:15:00 +0000 (UTC)
commit 0893789b34419a944e5b44e83ea52766bbb3db97
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Jul 10 10:41:09 2020 -0300
workspacesView: Update visibily when gesture drag begins
When dragging the workspaces through the swipe gesture, all
workspaces must be visible. WorkspacesView's _updateVisibility()
method special-cases this and ensures that.
However, this method is only called when (1) going to the active
workspace, and (2) when the gesture ends. That means, if there
is any workspace hidden by the time a gesture starts, it is never
shown!
Call _updateVisibility() on startTouchGesture() as well.
Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2969
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1360
js/ui/workspacesView.js | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index b16c134379..a757badbbf 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -241,6 +241,8 @@ class WorkspacesView extends WorkspacesViewBase {
startTouchGesture() {
this._gestureActive = true;
+
+ this._updateVisibility();
}
endTouchGesture() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]