elementary / elementary/gala

Dock shortcut plays error sound for app on another workspace

Open
#2,838 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vala
Stars
302
Forks
83
Avg merge
1d 1h
Merged PRs (30d)
7

Description

### What Happened?

When I assign keyboard shortcuts to `Launch first dock item` and `Launch second dock item` in System Settings, using those shortcuts plays the usual "impossible action" / glass-hit error sound while switching to the app's workspace and focusing it.

This happens even when the target app is on a different workspace, so the app is not currently focused on the workspace I am looking at.

### Steps to Reproduce

1. Open System Settings → Keyboard → Shortcuts.
2. Assign shortcuts to `Launch first dock item` and `Launch second dock item`.
3. Make sure the first and second dock items are apps that currently have one open window each.
4. Put one of those app windows on a different workspace from the current one.
5. Switch to another workspace so that the target app is not visible and not focused in the current workspace.
6. Press the shortcut for `Launch first dock item` or `Launch second dock item`.

### Expected Behavior

Pressing the shortcut should switch to the workspace containing that app and focus its window, or otherwise activate that app.

It should not play the error/impossible-action sound.

### OS Version

8.x (Circe)

### OS Architecture

amd64 (on most hardwares)

### Session Type

Secure Session (Wayland, This is the default)

### Software Version

Latest release (I have run all updates)

### Log Output

```shell

```

### Hardware Info

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.