mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
debug: Allow WAYLAND_DEBUG=server/client for server/client side only debug
By default the server will dump protocol for both the server and its clients when run with WAYLAND_DEBUG=1. That's still the case, but it now also understands WAYLAND_DEBUG=client or WAYLAND_DEBUG=server, which will only enable debug dumping on either client or server side.
This commit is contained in:
parent
5006829041
commit
0f5d41e3bb
2 changed files with 2 additions and 2 deletions
|
|
@ -1078,7 +1078,7 @@ wl_display_create(void)
|
|||
const char *debug;
|
||||
|
||||
debug = getenv("WAYLAND_DEBUG");
|
||||
if (debug)
|
||||
if (debug && (strstr(debug, "server") || strstr(debug, "1")))
|
||||
wl_debug = 1;
|
||||
|
||||
display = malloc(sizeof *display);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue