fthx / dock-from-dash

GNU General Public License v3.0
96 stars 20 forks source link

Sometimes the first click won't be registered #8

Closed miguelcanosantana closed 2 years ago

miguelcanosantana commented 2 years ago

Like the title says I'm having a little problem. When the dock is on the desktop, when I try to click the apps menu, sometimes I need to do it twice because the first time won't work.

Should I send any logs or something? (I don't know how to). Thanks

fthx commented 2 years ago

I never did experience any issue with this click. Do you use a special config? (touchscreen, etc.) Do you have a way to reproduce? Do you have any error in logs ("js")?

fthx commented 2 years ago

Feel free to reopen if needed!

ghost commented 2 years ago

I have the same problem and so far this happened with Nautilus. I have no idea how to log or reproduce this.

fthx commented 2 years ago

I suspect that the app state is still flagged as running by GS but not updated here: https://github.com/fthx/dock-from-dash/blob/1ceb8dcb3fb64f68309fb085efc860c29e088243/extension.js#L70

If this is the first click on the app in your session, that's quite odd because code should enter app's activation.

fthx commented 2 years ago

Tell me if it's ok after this: https://github.com/fthx/dock-from-dash/commit/61af1309709e1239dd44f11c89187aa23ede679b (will be included in v22 update)

fthx commented 2 years ago

I was searching another trick but found this: https://github.com/micheleg/dash-to-dock/blob/53114b4e000482a753e8b42dfa10d6057c08d1c6/appIcons.js#L664-L671 maybe related?

fthx commented 2 years ago

I think this issue is solved by v28. Reopen if needed, of course.

The solution implies an overview trick.