output: use suggested position for output by default

Some virtualised outputs provide a suggested position which indicates
the relative position of the outputs in the host WM. This change uses
these positions for outputs with no configured position.
This commit is contained in:
Daniel Playfair Cal 2021-01-10 20:38:32 +11:00
parent 3eb9cf4a45
commit 57ae17b620
3 changed files with 45 additions and 10 deletions

View file

@ -45,6 +45,7 @@ struct sway_output {
struct wl_listener commit;
struct wl_listener mode;
struct wl_listener available_modes;
struct wl_listener suggested_position;
struct wl_listener present;
struct wl_listener damage_destroy;
struct wl_listener damage_frame;