Well make up your mind, you said something about 20px, so I used that ;-). Clearly you need a sensible handle width, a few px.

Please read in what context I said those 20px before saying the "make up your mind" crap - it was about the patch I created (#4023), at the end I made the snapping distance 10px only.

IIUC because you have a fault on Mac that it removes the handle when you move the sidebar to zero and have to add code to get around your strange zero width handle, keep it as a patch on your Mac repository, as I have said, there is no need on Linux for it.

I'm pretty sure there is such a need on Linux too and, no, it's not the way you say - you misunderstand the problem completely. The handle is present and doesn't have 0 size - it's just so close to the edge of the window that you can't grab it because at its position you get the window resizing cursor.

In the following let's assume that the first | is the left edge of the window and the second | is the draggable separator:

 v v
  ||
  ||
  ||

The distance between the two vs is the place where you get window resizing cursor - since the area includes the separator, you have no way to grab it. So the ability to resize the sidebar depends on:

  1. The size of the separator
  2. The distance between the first | and the second v (on my linux machine with Xfce it's about 2px, on macOS I'd say it's about 4px). I'm not sure what controls this, if it's some WM settings on linux or some theming thing. In any case I can imagine it can vary and some users may like the distance bigger so they can resize windows more easily.
  3. The size of the window border itself (the first |). If windows have bigger borders, you probably won't run into the issue because it will make the distance of the second | further to the right. On Xfce I get the window border size about 3px; on macOS it's either 0px or 0.5px (I can't really tell - it's possibly just some shadow behind the window). I use the identical theme for the linux VM and Geany theme I use for the macOS version so this is definitely not controlled by the GTK theme - probably a WM theme.

So for identical GTK theme, I get 2 different behavior because of (2) and (3) above and in one case it is possible to drag the separator, in the other it is not possible. And no, there's nothing "crappy" or "buggy" on borderless windows and window resizing cursor "deeper" in the application window.

By the way, just test how VSCode behaves if you think I'm doing something idiotic. Other applications tend to restrict how much you can drag sidebars but I don't think it's a good match for Geany.

No special Geany code is needed in Geany.

Please, next time at least try to understand the problem first before making such claims.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/issues/4017/2445085495@github.com>