]> git.mdlowis.com Git - proto/labwc.git/commit
output: move a few calls from new_output_notify()
authorJohn Lindgren <john@jlindgren.net>
Sun, 20 Oct 2024 00:06:11 +0000 (20:06 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Wed, 6 Nov 2024 20:46:50 +0000 (20:46 +0000)
commitc38cb5f59c7c6405a5ef614b2b8dfba26a7a159a
treebeb873c5d189c2d058ef7151461a42315e1bd03a
parentf052eaea6f3fa4b97fd453cb528084541be044b0
output: move a few calls from new_output_notify()

... to more specific/logical locations, to make it possible in future to
*not* immediately auto-configure new outputs when connected.

In particular:

- Move regions_reconfigure_output() and session_lock_output_create()
  into add_output_to_layout(), which would be called also if the output
  is enabled later.

- Move seat_output_layout_changed() to do_output_layout_change() so it
  is called for any layout change, not just adding new outputs.
src/output.c