Skip to content

Draft: wayland: return largest display surface touches for from gdk_wayland_display_get_monitor_at_surface

Colin Kinloch requested to merge ColinKinloch/gtk:largest_wl_output into main

Currently wayland implementation of gdk_display_get_monitor_at_surface returns the monitor that the surface most recently entered. The function should return the monitor in which the largest area of the surface resides, as wayland does not divulge positional information of a surface this cannot be implemented properly.

This merge request changes the wayland implementation of gdk_display_get_monitor_at_surface to return the largest monitor the surface touches.

Edited by Colin Kinloch

Merge request reports