Skip to content
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

Buggy in program UI size (looks bigger than it actually is) #1372

Open
SeongGyu1216 opened this issue Feb 25, 2025 · 3 comments
Open

Buggy in program UI size (looks bigger than it actually is) #1372

SeongGyu1216 opened this issue Feb 25, 2025 · 3 comments
Labels
gtk4 Related to Gtk4 Windows This issue happens on MS-Windows

Comments

@SeongGyu1216
Copy link

Describe the bug
The UI of the program seems to be a bit larger than the actual size it appears to be.

To Reproduce
When in windowed mode, it seems to recognize it as slightly larger than it actually is.
In fact, if I put another program behind rNote and click on the outer border of rNote, it should show the program behind it as active, but when I click on the
It doesn't show up, and I have to click beyond a certain distance to activate the program behind it.

Desktop (please complete the following information):

  • Windows 11, version 24H2
  • Rnote v0.11.0
  • mouse, tablet pen

Additional context
I want it to look like the size it actually is.

@Doublonmousse
Copy link
Collaborator

I think that's a windows-specific gtk4 bug
See https://gitlab.gnome.org/GNOME/gtk/-/issues/6255#note_1952796 and

Gaphor uses a workaround in the meantime (see gaphor/gaphor@5167174 and https://github.com/gaphor/gaphor/blob/597140ba014586e163bafcaf47b48f1ba6fba4bb/gaphor/ui/styling-windows.css#L1C1-L14C1 )
This is basically some custom css

Until gtk4 uses native shadow (instead of drawing themselves the shadow and having a larger than the window clickable area) this is the only fix there is (The upstream issue for gtk4 is here : https://gitlab.gnome.org/GNOME/gtk/-/issues/7001).

Should we follow gaphor and implement the workaround ?

@Doublonmousse Doublonmousse added gtk4 Related to Gtk4 Windows This issue happens on MS-Windows labels Feb 26, 2025
@SeongGyu1216
Copy link
Author

It's a bug with the Windows operating system,...

I see, there's no problem when using it in full screen, but it's only slightly inconvenient when in windowed mode, so it's okay. Still, I hope it will be fixed someday.

@Doublonmousse
Copy link
Collaborator

It's not really a windows OS bug, more a bug in gtk4.

I'm trying the gaphor workaround on rnote and it's working pretty well overall, reducing by a lot this (pretty large) distance you'd have to be from the window's borders for clicks to work.

I think it's worth implementing the workaround (and removing it once https://gitlab.gnome.org/GNOME/gtk/-/issues/7001 is closed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gtk4 Related to Gtk4 Windows This issue happens on MS-Windows
Projects
None yet
Development

No branches or pull requests

2 participants