diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2020-08-27 17:22:24 +0200 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-10-29 11:56:08 -0700 |
commit | 85a934954d785994e2fd95d074a85b5df1f85bb0 (patch) | |
tree | 8d9f3fac62feab04c112dd4ac7a33be077811e51 /scene/resources | |
parent | 9fb9b99cab51173c569f147664c334690f9d5d72 (diff) |
Implemented screen_get_usable_rect for X11 Display Server
Helps with fixing issues with scrolling popups not respecting screen
decorations on the display server side.
Reproduction steps for a simple use case:
- Start the editor project list
- Open the language selection popup
Support for multi-screen:
Handling decorations is supported in different ways depending on the
information the window manager provides:
- _GTK_WORKAREAS is used when available from the WM to get accurate rect
for the different screens directly (available on Gnome).
- Alternatively, strut information is used to calculate available space
for a given desktop manually (XFCE, KDE).
- As last resort _NET_WORKAREA is used. It provides one full rect for all
screens, which doesn't handle decorations on the secondary screen in all
cases.
Diffstat (limited to 'scene/resources')
0 files changed, 0 insertions, 0 deletions