micheleg / dash-to-dock

A dock for the Gnome Shell. This extension moves the dash out of the overview transforming it in a dock for an easier launching of applications and a faster switching between windows and desktops.
https://micheleg.github.io/dash-to-dock/
GNU General Public License v2.0
3.86k stars 461 forks source link

Fix wl-clipboard messing with the dock #2244

Open ndr3www opened 3 months ago

ndr3www commented 3 months ago

A temporary fix of wl-clipboard appearing in the running apps section (https://github.com/micheleg/dash-to-dock/issues/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 https://github.com/micheleg/dash-to-dock/issues/988 and https://github.com/micheleg/dash-to-dock/issues/2064, it would be nice to take it further and implement an option to ignore apps specified by the user.

3v1n0 commented 3 months ago

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 commented 2 months ago

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 commented 2 months ago

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

3v1n0 commented 2 months ago

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 commented 2 months ago

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.