-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wl-clipboard steals focus from ddterm #672
Comments
wl-clipboard creates a temporary window and expects it to gain focus. See #622
This is a consequence of how wl-clipboard is implemented, and at least "above all windows" can't be fixed with current Mutter API at all. (2) maybe can be fixed if ddterm would detect wl-clipboard specifically and ignore it. |
Thanks for explaining. |
Actually, if we could detect wl-clipboard window, it should be possible to disable ddterm's "above all windows" temporarily, and activate wl-clipboard window The problem is I'm still not sure how to detect/find the window |
I just patched and rebuild wl-clipboard myself and added your app id and class attributes. Is there any patch or piece of code for ddterm available to test out whether the issue is fixed? |
No, nothing has been implemented in ddterm yet |
Hi @amezin I'm still having this issue, both when launching GNOME: 47.1 |
@ram-on please create a new issue And I don't know what |
GNOME Shell version
45.1
Session type
Wayland (
echo $WAYLAND_DISPLAY
output is non-empty)Special configuration
ddterm version
48
Linux distro
Arch Linux
ddterm settings dump
Description
More often than not, I'd say 99% of the time, launching the
micro
editor, as well as selecting text in it with the mouse and middle-click-pasting into it makesddterm
lose focus and slide up, when hiding focus notifications with an extension.Alternatively, with no other extensions enabled,
ddterm
stays visible, but does not showmicro
or the pasted text, and the notificationwl-clipboard is ready
appears.Pressing the
ddterm
hotkey (twice in the second case) brings it back again withmicro
open and the text selected/pasted.This problem doesn't happen with
nano
,vim
or other input-enabled TUI apps, likemc
orpacseek
.So the problem is obviously with
micro
usingwl-clipboard
and with the latter grabbing the focus and makingddterm
lose it.Curiously, however, very rarely, this stops happening with no particular traceable action on my side, and apparently remains that way until the end of the particular shell session (closing the
ddterm
tab).Also, this didn't happen in Gnome 44, and it's been a thing since the ESM port became available on git. I was hoping it would go away once the port is finalised and published on EGO, but I still have it.
The text was updated successfully, but these errors were encountered: