summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--dwl.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index dee0d22..d3c4a65 100644
--- a/README.md
+++ b/README.md
@@ -37,7 +37,7 @@ Feature *non-goals* include:
## Building dwl
-dwl has only two dependencies: wlroots 0.12 and wayland-protocols. Simply install these and run `sudo make install`.
+dwl has only two dependencies: wlroots-git and wayland-protocols. Simply install these and run `make`.
To enable XWayland, you should also install xorg-xwayland and uncomment its flag in `config.mk`.
@@ -47,7 +47,7 @@ All configuration is done by editing `config.h` and recompiling, in the same man
## Running dwl
-dwl can be run as-is, with no arguments. In an existing Wayland, this will open a window to act as a virtual display. When run from a TTY, the Wayland server will take over the entire virtual terminal. Clients started by dwl will have `WAYLAND_DISPLAY` set in their environment, and other clients can be started from outside the session by setting this variable accordingly.
+dwl can be run as-is, with no arguments. In an existing Wayland or X11 session, this will open a window to act as a virtual display. When run from a TTY, the Wayland server will take over the entire virtual terminal. Clients started by dwl will have `WAYLAND_DISPLAY` set in their environment, and other clients can be started from outside the session by setting this variable accordingly.
You can also specify a startup program using the `-s` option. The argument to this option will be run at startup as a shell command (using `sh -c`) and can serve a similar function to `.xinitrc`: starting a service manager or other startup applications. Unlike `.xinitrc`, the display server will not shut down when this process terminates. Instead, as dwl is shutting down, it will send this process a SIGTERM and wait for it to terminate (if it hasn't already). This makes it ideal not only for initialization but also for execing into a user-level service manager like s6 or `systemd --user`.
diff --git a/dwl.c b/dwl.c
index a7dcc6d..c09f598 100644
--- a/dwl.c
+++ b/dwl.c
@@ -2015,7 +2015,7 @@ setup(void)
* backend uses the renderer, for example, to fall back to software cursors
* if the backend does not support hardware cursors (some older GPUs
* don't). */
- if (!(backend = wlr_backend_autocreate(dpy, NULL)))
+ if (!(backend = wlr_backend_autocreate(dpy)))
BARF("couldn't create backend");
/* If we don't provide a renderer, autocreate makes a GLES2 renderer for us.