Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • gtk gtk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 1.6k
    • Issues 1.6k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 267
    • Merge requests 267
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • gtkgtk
  • Issues
  • #6081

Gtk4 Win32 : mouse offset when dragging windows out of maximized state.

Steps to reproduce

  1. Open a gtk4 application and maximise it
  2. Drag the window out of the maximised state
  3. See that there is a permanent and constant offset between the mouse cursor and the application titlebar.

This happens on the gtk4-demo application and other applications built on gtk4.

Current behavior

There is an offset between the cursor and the titlebar.

Expected outcome

No offset

Version information

  • gtk4.12 on windows 11, mingw64
  • Computer : surface pro 8 on windows 11 22H2, screen resolution 2880 x 1920 (the bug occurs at 100 % and 200 % scaling on both the high dpi 2880 x 1920 and 1920 x 1080 resolutions

Additional information

Bug on the gtk4-demo

gtk4_windows_bug00000907

And on rnote. For some reason, the offset is much larger on rnote v 0.8.2.

gtk4_windows_bug00001710

This much larger offset introduces some inconvenience, where touching on a button in the titlebar will change the window size instead of registering a button press.

I think the fact that there is such a difference between these two applications (gtk4-demo and rnote) could help better pinpoint the issue's origin.

On a first look, I thought about a scaling issue, similar to #5877 (closed) but I can confirm :

  • the bug occurs at 100 % scaling and 200 % scaling at full HD and high dpi resolution (but there might be a larger gap at 200 %)
  • the bug occurs regardless of the type of input (mouse, touch, pen) and behaves the same way between the three
  • the bug occurs both on gtk 4.12 and previous versions (4.10 as well).
Assignee
Assign to
Time tracking