mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
src/output.c: refactor virtual output related functions
This commit moves the virtual output related functions into their own file at `src/output-virtual.c` with its own include file to reduce `include/labwc.h` bit by bit. Additionally, it removes the need to keep the `server->headless.pending_output_name` char array around by temporarily disconnecting the handler when creating a new virtual output. This allows to set the output name right in the `output_virtual_add()` call rather than to store the pending name until the new output event handler has been called. It also makes adding a virtual fallback output easier in a follow-up PR.
This commit is contained in:
parent
40ce95a68c
commit
95e8573388
6 changed files with 132 additions and 65 deletions
|
|
@ -13,6 +13,7 @@ labwc_sources = files(
|
|||
'node.c',
|
||||
'osd.c',
|
||||
'output.c',
|
||||
'output-virtual.c',
|
||||
'placement.c',
|
||||
'regions.c',
|
||||
'resistance.c',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue