Summary: | Copying text from notifications does not work on Wayland | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Nate Graham <nate> |
Component: | Notifications | Assignee: | Kai Uwe Broulik <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aleixpol, alex765, dkxls23, katyaberezyaka, kde, lee295012, m.wege, plasma-bugs, smit17xp |
Priority: | NOR | Keywords: | wayland |
Version: | 5.21.0 | ||
Target Milestone: | 1.0 | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/commit/60ff1e04e40765f5c28b5f6ab0c953840549ffa1 | Version Fixed In: | 5.23 |
Sentry Crash Report: |
Description
Nate Graham
2021-03-20 14:38:27 UTC
I can also reproduce this bug on my Fedora 34 (KDE spin) system. SOFTWARE/OS VERSIONS OS: Fedora Kernel: x86_64 Linux 5.11.15-300.fc34.x86_64 DE: KDE 5.80.0 / Plasma 5.21.4 I don't get to select the text at all. Are you sure this is supposed to work? I can also reproduce this, on Fedora 34 with Plasma 5.21.4. (In reply to Aleix Pol from comment #2) > I don't get to select the text at all. > > Are you sure this is supposed to work? I can select the body text, but not the title text. So with the example of `notify-send foo bar`, "bar" is selectable, and right clicking on it brings up a context menu with a Copy option. Since 3 people are able to reproduce this, I'll mark this bug as confirmed. (In reply to Alex from comment #3) > I can also reproduce this, on Fedora 34 with Plasma 5.21.4. > > (In reply to Aleix Pol from comment #2) > > I don't get to select the text at all. > > > > Are you sure this is supposed to work? > > I can select the body text, but not the title text. So with the example of > `notify-send foo bar`, "bar" is selectable, and right clicking on it brings > up a context menu with a Copy option. > > Since 3 people are able to reproduce this, I'll mark this bug as confirmed. I can confirm all of those things. The title not being selectable is not a wayland-specific bug though, as it happens on X11 too. Probably because the notification window never gets focus and on Wayland only windows that have focus can interact with the clipboard. Maybe we can abuse the inline reply thing and once you open the context menu let the popup get focus because at this point you clearly wanted to interact with it anyway. A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwayland-server/-/merge_requests/272 A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1006 Git commit 60ff1e04e40765f5c28b5f6ab0c953840549ffa1 by David Redondo. Committed on 16/08/2021 at 14:30. Pushed by davidre into branch 'master'. Let the notification take focus when interacted with On wayland we need focus to copy to the clipboard. As we don't want the notification to take focus indiscriminately, it listens to mouse events of its children and only accepts focus if it sees a button press. When the cursor leaves the popup again, everything is reset. Related: bug 408507 M +12 -2 applets/notifications/package/contents/ui/NotificationPopup.qml https://invent.kde.org/plasma/plasma-workspace/commit/60ff1e04e40765f5c28b5f6ab0c953840549ffa1 |