-
Notifications
You must be signed in to change notification settings - Fork 462
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
Show window previews on mouse hover #574
base: master
Are you sure you want to change the base?
Conversation
949018a
to
4e22b13
Compare
cac6b31
to
862a1a0
Compare
Maybe on Activites overview it shouldn't trigger (and revert to click to show preview behaviour)? It's quite easy to trigger the hover by accident when going to activites, which then makes it hard to select a window in overview. |
I'm testing this version and it's great. I found a bug (I do not know if it is known): when setting "dynamic" or "adaptive" transparency with the dock in bottom position, the rounded corners are wrong. The corner to top left is NOT rounded, instead the corner to BOTTOM right is rounded. |
@jacopo1395 Thanks for the feedback on window previews.
I cannot reproduce this, but if you can do so consistently, please open a new issue! |
I reinstalled the extension and now it works fine. |
862a1a0
to
70fb794
Compare
Rebased following the code reorganization! |
Thanks for rebasing the branch. I'm running this for test so I'll add few comments:
|
I personally found it was more comfortable to have them a bit larger, but this might be due to my (very) crappy screen. It was simply hard to distinguish what was inside the previews. Besides the default size we use (1/5, which we can change obviously), would you keep the "based on screen size" approach?
You are rather right here... I set it to 100ms by default, which seems a bit low. I don't really know what the best value would be. I expect users would want the previews to show up rather quickly if they are going to use them for window navigation. A compromise can surely be found in an intermediate value. Now, regarding both issues:
|
In dash-to-panel, timeout is already an option, but not size. But, even with a long timeout, I don't see the preview pop up if the secondary menu is open (in dash-to-panel). I could be wrong, but I can't find specific code to handle this. Perhaps either the leave event is firing when the secondary is opened, cancelling the timeout or the grab helper is blocking some events, or something along those lines. The preview size is fixed at 350x200 but could be set with _thumbnailWidth/_thumbnailHeight properties in thumbnailPreview class. The thumbnail is recreated each time it is displayed so just setting the new value should be enough. There's an outstanding issue in the tracker asking for this, but it hasn't been completed yet. PS.. In the interest of not taking undue credit - while I've made some changes/fixes, this code came originally from ZorinOS. |
@franglais125 I've been testing your version and so far it all seems to work very well. I'm very happy with the default 100ms delay, I wouldn't want to wait any longer. Would it be possible to keep the order of the previews in the same order the windows were open? To me it is a bit distracting that the order changes to the most recent used first. |
Is it possible to dim (or hide) all the other windows except the one that you are hovering over? This would allow you to take a peek at what is going on without have to activate the window. Probably outside the scope of this PR if it is even possible at all... Thanks so much for adding this very useful feature! |
@runningnak3d I guess this would the win windows peak like behaviour which can be found in dash-to-panel? |
@micheleg I have not used dash-to-panel, but it would be like the old Windows 7 "aero peek". I hate MIcrosoft, but that was a very useful feature. If dash-to-panel has something equivalent, then I would love to see it ported. -- Brian |
70fb794
to
b76e840
Compare
@micheleg Here is a new rebase. There is only one new commit: [b76e840], it addresses the last issue you mentioned with overlapping menus and previews. As listed before, here are two more things that I leave up to your preference/discretion:
@emilioea It is certainly possible to keep the order constant (i.e. use a time-based ordering). You can have a look here: https://github.com/jderose9/dash-to-panel/blob/master/windowPreview.js#L1122. We simply need to change that in our windowPreview.js function. I didn't change this as this is the way we were already doing it for the previews we had. @micheleg any preference for this? I personally like better the time-based approach. @runningnak3d it would certainly be very nice to have the window-peek feature here as well. At the moment I can't commit to making a (quality) port of the code, sorry! |
As for the size and timing values, I think they should be configurable by the user just as the timing for showing the whole dock. |
Any news here? |
I haven't had time to work on this lately, sorry to say. This branch "works", but I think it could also see some improvements still. |
+1 Hope to see this soon :) |
for the previews on hover work.
Seeing as this will take a long time, would it be much easier in the meantime to just add an option to have the "all windows" submenu open by default, if the user has window previews enabled? That would honestly be good enough to satisfy the vast majority of users asking for this feature. Of course, it might not be the ideal, but its much easier, considering all the work is already there. There just has to be an option to have the menu open by default, rather than closed, and requiring an extra click. |
I actually just noticed that there is a "show window previews" option under "click actions". Right now I have it bound to middle click, but that UI looks perfect for showing when hovering over an icon in the dock. Is there a way for dash to dock to capture the "hover" event and show the same dialog that it shows when you use the "show window preview" click action? For others who read this, using middle click or right click to show the window preview is a great workaround until the hovering thing is merged in. |
Oh, it works. Thank you. |
Hi, is there any update on this feature? Thank you. |
is there any update on this feature? |
This works but it would be much more intuitive to just hover, especially since hover currently does nothing other than show the application's name |
still nothing? |
More than 4 years have been passed! Isn't there anyone to merge this into the main code? Looks like it will never be merged :( |
if there is priority by waiting time, the priority of this merge request should be critical |
It's actually a shame that @franglais125 did all the work, implemented an awesome and much needed feature and no-one had the time to merge it. |
Hey! Someone merge it? |
Someone fork it? :) |
Is there any update on this feature? |
Shocked to see no response. Even a rejection would be better than silence at this point :( |
bump. |
That would be a nice feature to have, please merge that |
Bro, why not merging? Wtf? |
Might only be possible as the author but you can do it online on GitHub. Otherwise, if the OP cannot do this or has abandoned this PR; you can likely also fork this PR (or rather this branch), create a new PR and do the same. Something like this… |
still no progress? |
2024 bump |
omg still nothing... it's been years 😞 |
Yeah definitely a much needed feature still waiting for a long time. |
@micheleg any reason for this still not being a thing? |
2024 bump, I wish it gets merged soon :( |
Kind of bizarre that this has not being implemented yet... |
bump |
A few things to say about this:
Cheers! Hope you like this.