-
Notifications
You must be signed in to change notification settings - Fork 609
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
Scrollbar should be on the right edge when geany is maximized or in fullscreen mode #2361
Comments
This is a recorded message, please always provide the version of Geany, Glib and GTK (see lines near the top of Help->Debug Messages) and the operating system and version you are using. WFM (ie full screen == full screen!!) without full details of your system (including window manager in your case) there is nothing anybody can do to help you. |
geany 1.36 (built on 2019-10-05 with GTK 3.24.11, GLib 2.60.7). |
How to reproduce: try e.g. firefox - maximize it, open a long page, push the mouse to the right edge, press left mouse button, drag the mouse down - the scrolling works. Try the same with geany - and you cannot just push the mouse cursor to the right side, click and scroll - you have to pinpoint the scrollbar, which is not as easy as simply pushing the mouse cursor to the right. |
Ok, WFM Geany 1.37 (git >= 82590af), en_AU.UTF-8 GTK 3.22.30, GLib 2.56.4 Linux Mint 19.1 Cinnamon. Might be an XFCE problem. |
No this is most definitely not an XFCE problem. There is simply 1px wide border around the edit area (including scrollbar) which prevents the scrolling on the very right edge.
|
So its not that Geany doesn't go fullscreen? The difference between Geany and friedfox is that in Geany the edit widget with scrollbar is in a horizontal pane and your GTK theme has put a very small but not zero width border on the pane. The same happens on the left, a mouse pushed right to the edge won't select a line in the symbols but move it in a few pixels and its fine. |
Moving this few pixels is what I am talking about - it makes the scrolling not so comfortable. I do not care about the left side that much (the selection area for symbols is quite wide, i.e. easy to hit, compared to the scrollbar). It is always best to have the scrollbar precisely on the right edge, without any "dead" borders. The one pixel of the border makes a lot of difference. I would say it is not a theme issue. The border is hardcoded in the program, somewhere. |
The Geany UI is made with Glade and is defined in the On the other hand my themes CSS sets lots of 1px borders. |
I'm pretty sure this a GTK+ issue where it hardcodes some bad defaults forcing themes or apps to fix with custom CSS like this Issue. I guess this is the same as this Thunar bug linked from a (possibly) related Mousepad bug. IMO, such issues should be fixed where they'll have the most effect:
|
Also looks related to shimmerproject/Greybird#190. |
Note that the way the selectors are super brittle and could break with certain preferences or plugins. A better fix would add an ID to the exact widgets so they can be selected from CSS without the brittle descendant selecting.
If we went for a local hack (3), something like codebrainz@4d6a914 works, but it should be done properly as noted in the commit message if it's to actually be merged. @apurkrt if you want to use it now, you could probably just copy the new CSS part from that commit to your |
|
@codebrainz @apurkrt Thank you! The local fix does the trick on Plasma. Would be nice to fix this at the core in GTK. |
I met the same problem on Xfce 4.14 (Adwaita Theme). You can make all Geany's notebooks (Editor, Symbol list, Message window) scrollbar on the right edge by: BTW, if you want reduce the size of the statusbar, do this: |
Hi, currently, there is one pixel gap between the vertical scrollbar and the right edge of the screen when geany is maximized or when in fullscreen mode. This makes it hard to scroll. When the scrollbar is right on the edge, it is very easy to hit with the mouse (the edge acts like "infinitely" wide target). So I would like to ask to remove the gap to enable easy scrolling.
Edit: Talking about Linux version
The text was updated successfully, but these errors were encountered: