-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Feature request/Bug] Floating bar & islands should respect Fitt's law #65
Comments
Hello, Agreed! This is a pet peeve for me as well. However, it is not clear how the (x, 0) can be efficiently implemented.
Gnome has the Panel touching the top edge of the screen. The buttons are inside the Panel and are also spanning full height and so touch the top edge. They've added a few pixels wide transparent border to buttons to create illusion of narrower buttons inside the panel. So, when the pointer is at the top edge, it is also on the button and it works that way.
Good to know. I am not aware of how KDE is doing it but then again their Panel implementation is likely different from that of Gnome. The idea then would be to listen to pointer events on the panel/box and manually handle the event to open a menu if pointer was above it. Tracking pointer through js may not be efficient so maybe only clicks. I will try something on this line. Feel free to share if you have any specific ideas. This is also a reason I personally don't use 'Vertical padding' option in the extension and keep zero margin in WMax bar so that at least when a window is maximized (which is most of the time) I can click on the top edge to open a menu :)
Thank you! And thanks for raising this issue, let's see if we can fix it or at least make it better. |
I found that if Vertical padding is 1.4 then (on my screen) I can click if on the top edge. Unfortunately, the extension crashes my gnome session for some reason so I disabled it. |
Ah cool. I think it is the combination of bartype/margin/border/padding that can result in the button being able to reach the top edge and make it work. I have thought about it and have some idea on how it could work in all cases but it will be rather involved. I will work on it in a separate branch as time permits.
That's unfortunate indeed. If you were using Candybar with colorful buttons then it is related to this issue. The main issue is upstream in Gnome/mutter but I am not able to figure out why it is triggered with Candybar but not otherwise. Also, I am not facing it lately (could be a patch in Ubuntu). If you like, you can give the version in |
I tried the version in main branch but still it crashes :( |
That's disappointing :( Can you please let me know:
Thank you! |
I'm 99% sure it happens regardless of the candybar, how do I get the crash log? |
Hello, For the main issue here about Fitts Law:
About the crash, there are two open issues: issue #35 and issue #63 . If your issue is similar to any of them, we can track it there. Frankly, they are the same issue with slight variation on the state it is triggered in (i.e. trilands vs. candybar). Both of these happen when locking screen or suspend. So when trying to resume, Gnome shell would have restarted.
Immediately after the crash, i.e. after Gnome has restarted,
In the crash log, I search for 'neuromorph', 'openbar', 'stylesheet' or the typical candidate in this issue 'st_theme_node_lookup_shadow' to find relevant part. Thank you! |
The new version v41 with support for Gnome 47 and Fitts law is now live! Feel free to log a new bug for other issues. |
Under vanilla GNOME you don't need to hit exactly on the top-bar's widget to select/click on them. When the cursor is all the way on top, you are hovering over the widget & can click to expand.
In KDE the floating panels respect Fitt's law in the same way; go all the way to the edge of the screen, the widgets are still selected.
This does not happen with this extension (at least on my pc) but I suspect this is not a bug, but the way it is now supposed to work. It is a shame as it requires more fine control to select the widgets as they exist in (x,y) instead of (x,0). There is never going to be something above the widgets to select so there is no reason why they should not be select-able when the cursor is in the (proper) x,0 spot.
Thanks! The extension is really great!
The text was updated successfully, but these errors were encountered: