mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
prior run the startup command start the backend
this allow use clients like wlr-randr in the startup command
This commit is contained in:
parent
fd67087a82
commit
c8a9f63451
1 changed files with 7 additions and 7 deletions
14
dwl.c
14
dwl.c
|
@ -1817,7 +1817,12 @@ run(char *startup_cmd)
|
||||||
die("startup: display_add_socket_auto");
|
die("startup: display_add_socket_auto");
|
||||||
setenv("WAYLAND_DISPLAY", socket, 1);
|
setenv("WAYLAND_DISPLAY", socket, 1);
|
||||||
|
|
||||||
/* Now that the socket exists, run the startup command */
|
/* Start the backend. This will enumerate outputs and inputs, become the DRM
|
||||||
|
* master, etc */
|
||||||
|
if (!wlr_backend_start(backend))
|
||||||
|
die("startup: backend_start");
|
||||||
|
|
||||||
|
/* Now that the socket exists and the backend is started, run the startup command */
|
||||||
if (startup_cmd) {
|
if (startup_cmd) {
|
||||||
int piperw[2];
|
int piperw[2];
|
||||||
if (pipe(piperw) < 0)
|
if (pipe(piperw) < 0)
|
||||||
|
@ -1839,12 +1844,7 @@ run(char *startup_cmd)
|
||||||
signal(SIGPIPE, SIG_IGN);
|
signal(SIGPIPE, SIG_IGN);
|
||||||
printstatus();
|
printstatus();
|
||||||
|
|
||||||
/* Start the backend. This will enumerate outputs and inputs, become the DRM
|
/* At this point the outputs are initialized, choose initial selmon based on
|
||||||
* master, etc */
|
|
||||||
if (!wlr_backend_start(backend))
|
|
||||||
die("startup: backend_start");
|
|
||||||
|
|
||||||
/* Now that outputs are initialized, choose initial selmon based on
|
|
||||||
* cursor position, and set default cursor image */
|
* cursor position, and set default cursor image */
|
||||||
selmon = xytomon(cursor->x, cursor->y);
|
selmon = xytomon(cursor->x, cursor->y);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue