aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2020-07-25 11:57:47 -0400
committerDevin J. Pohly <djpohly@gmail.com>2020-07-25 11:57:47 -0400
commit0e21cce803aef6d6f408f21b9c8899019c43e402 (patch)
tree08fa8ed9f55255caeeca6735f6f1e4f568ffb6c6
parent3e29ef1c7ecade8d6bc8f0dea59c431a2ad06c8e (diff)
ok, treat it like an enum
-rw-r--r--dwl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 194d861..29b128e 100644
--- a/dwl.c
+++ b/dwl.c
@@ -49,7 +49,7 @@
enum { CurNormal, CurMove, CurResize }; /* cursor */
enum { NetWMWindowTypeDialog, NetWMWindowTypeSplash, NetWMWindowTypeToolbar,
NetWMWindowTypeUtility, NetLast }; /* EWMH atoms */
-enum { XDGShell = 0, X11Managed, X11Unmanaged }; /* client types */
+enum { XDGShell, X11Managed, X11Unmanaged }; /* client types */
typedef union {
int i;
@@ -546,6 +546,7 @@ createnotify(struct wl_listener *listener, void *data)
/* Allocate a Client for this surface */
c = xdg_surface->data = calloc(1, sizeof(*c));
c->xdg_surface = xdg_surface;
+ c->type = XDGShell;
c->bw = borderpx;
/* Tell the client not to try anything fancy */