mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user