! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Window scaling limits menus and maximized windows to top-left quadrant


Description Alexander Sosedkin 2019-02-05 06:48:25 CET
Disclaimer: I have no idea what I'm doing, feel free to correct me.

When 'Window scaling' is set to 2x, two (apparently foreseen: https://bugzilla.xfce.org/show_bug.cgi?id=14566#c5) bugs manifest themselves:

1) drop-down menus are restricted to the top-left quadrant of the screen

2) maximized windows are restricted to the top-left quadrant of the screen

I've looked at https://git.xfce.org/xfce/xfwm4/commit/?id=07773e608413a370932c5f2d59ed0b656240970a and inferred that gdk_monitor_get_geometry returns scaled dimensions/coordinates that should be scaled back by gdk_monitor_get_scale_factor, but note that it's purely a speculation, especially for the coordinates part. Applying that multiplier to the remaining invocations of gdk_monitor_get_geometry seem to solve the problem for me.

Unfortunately, I cannot test the result with multiple monitors right now, but at least the single-monitor scenario looks good to me.
Comment 1 Alexander Sosedkin 2019-02-05 06:56:29 CET
Created attachment 8284 
My attempt at scaling gdk_monitor_get_geometry results
Comment 2 Git Bot editbugs 2020-05-29 12:25:27 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfwm4/-/issues/321.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #15117

Reported by:
Alexander Sosedkin
Reported on: 2019-02-05
Last modified on: 2020-05-29


Olivier Fourdan
CC List:
0 users




Additional information