https://bugs.kde.org/show_bug.cgi?id=527914

            Bug ID: 527914
           Summary: Installed Chrome PWAs (WhatsApp Web, Google Tasks)
                    show up when I use Alt+` to cycle Chrome windows. They
                    are separate apps everywhere else: each has its own
                    .desktop file and app_id (chrome-<id>-Profile_1), and
                    its own Task Manager entry.
    Classification: Plasma
           Product: kwin
      Version First unspecified
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: tabbox
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Installed Chrome PWAs (WhatsApp Web, Google Tasks) show up when I use Alt+` to
cycle Chrome windows. They are separate apps everywhere else: each has its own
.desktop file and app_id (chrome-<id>-Profile_1), and its own Task Manager
entry.

This looks like the Wayland side of bug 414378 (LibreOffice apps sharing one
process are treated as one app). There, comment 4 suggests checking the window
class first. That bug is about X11; this one is native Wayland, where the cause
is easy to point at (below).

STEPS TO REPRODUCE
1. Install any site as an app in Chrome (Wayland, ozone).
2. Open a normal Chrome window and the PWA window.
3. Focus the Chrome window and press Alt+`.

OBSERVED RESULT
The PWA window is in the list with the Chrome windows.

EXPECTED RESULT
Only Chrome windows. The PWA has a different app_id, so it should count as a
different app. This is how macOS treats PWAs.

ADDITIONAL INFORMATION
WaylandWindow::belongsToSameApplication() falls back to comparing the Wayland
client:

    if (other->desktopFileName() == desktopFileName()) return true;
    ...
    return s->client() == surface()->client();

All PWAs run in the main Chrome process, so they share one Wayland connection
and the second check returns true even though the desktop file names differ.
Maybe the client check should only apply when a window has no desktopFileName.

Fedora 44, Plasma 6.7.5, KWin 6.7.5, Wayland, Google Chrome 156.0.8078.47.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to