Skip to content
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

Fix wl-clipboard messing with the dock #2244

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ndr3www
Copy link

@ndr3www ndr3www commented Jun 29, 2024

A temporary fix of wl-clipboard appearing in the running apps section (#2193) and causing a hidden dock to show up for a brief moment when launched.

The problem is caused by not only the wl-clipboard but also other short-lived programs stealing focus so, as proposed in #988 and #2064, it would be nice to take it further and implement an option to ignore apps specified by the user.

@3v1n0
Copy link
Collaborator

3v1n0 commented Jul 2, 2024

Sorry, custom code like this can't be accepted upstream.

I wonder if you can find a window type or class the application matches. Or if the app needs to be fixed

@ndr3www
Copy link
Author

ndr3www commented Jul 5, 2024

Well, that's the main problem. wl-clipboard has no window class or anything specific assiociated with it, I'm aware that the title matching is not a good solution, but couldn't think of anything better unfortunately.

@sergio-costas
Copy link
Collaborator

@ndr3www @3v1n0 Maybe delaying for half a second adding a new icon to the dock?

@3v1n0
Copy link
Collaborator

3v1n0 commented Jul 31, 2024

Bah, it could be a posisbility, but normally I'm not in love with delays since they're not fully predictable, so they may work by luck and depending on the environment.

@sergio-costas
Copy link
Collaborator

I fully agree with delays; unfortunately, in this case is the only solution, because the point is, precisely, that the window is created and deleted very quickly, so we should only show icons for windows that have been in the screen for a minimum amount of time, and don't add icons to those windows that are there for less time than that minimum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants