Fix #1172: switch workspace on thumbnail clicked

If you click a thumbnailed window within a workspace preview, the shell
behaves as expected; if you click a thumbnailed background, the overview
is closed.

Fix it by activating the workspace whose the picked actor is the
thumbnailed background.
This commit is contained in:
l3nn4rt
2020-10-06 00:12:18 +02:00
parent 8d20fb82c6
commit fa6e02c78c

View File

@@ -472,6 +472,14 @@ var dtpOverview = Utils.defineClass({
|| pickedActor == overviewControls.dash._container) {
return Clutter.EVENT_PROPAGATE;
}
if (pickedActor instanceof Meta.BackgroundActor) {
overviewControls._thumbnailsBox._thumbnails.find(t =>
pickedActor == t._bgManager.backgroundActor
).activate();
return Clutter.EVENT_STOP;
}
Main.overview.toggle();
} else {
Main.overview.toggle();