pop-os / cosmic-comp

Compositor for the COSMIC desktop environment
GNU General Public License v3.0
480 stars 86 forks source link

Clicking a Link In a App on A Different Workspace Does Not Move to the Browser #192

Open WatchMkr opened 1 year ago

Drakulix commented 1 year ago

This needs xdg-activation support.

WatchMkr commented 10 months ago

This doesn't seem to work. When clicking a link in the Mattermost or Slack flatpak, focus doesn't move to the browser.

Drakulix commented 10 months ago

This doesn't seem to work. When clicking a link in the Mattermost or Slack flatpak, focus doesn't move to the browser.

Is the browser on a different workspace/output or not? Is the workspace highlighted in the applet at least?

WatchMkr commented 10 months ago

Here are three setups I tested:

  1. Mattermost and the browser on the same workspace. Click a link in Mattermost and the link opens in the browser but focus doesn't move to the browser.
  2. Mattermost and the browser on different workspaces. Click a link in Mattermost and the link opens in the browser but focus doesn't move to the workspace and browser.
  3. Two displays. Mattermost on one, browser on the second. Click a link in Mattermost and the link opens in the browser but focus doesn't move to other display and browser.
Drakulix commented 10 months ago

Looking at this in more detail, it seems like this issue is mostly with Xwayland apps, which have their own (unnecessary complex looking) activation protocol. This will need some additions to the Xwayland window management code to pass focus from Xwayland apps.