diff options
author | 2023-05-22 00:24:36 +0200 | |
---|---|---|
committer | 2023-05-22 00:24:36 +0200 | |
commit | b6d3f5a78e3ac4e517608fe51e37d5a7a0e35f61 (patch) | |
tree | ca578ea9d179907444e8cabb5b074a92c6e93ec5 /src/window.c | |
parent | 03911f18bdb58c5aa1cc7c992574d68b61dc1d1c (diff) | |
download | cherry-b6d3f5a78e3ac4e517608fe51e37d5a7a0e35f61.tar.gz cherry-b6d3f5a78e3ac4e517608fe51e37d5a7a0e35f61.zip |
Add contexts to retrieve the window when
dispaching events
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index 2d14292..c3f2e2f 100644 --- a/src/window.c +++ b/src/window.c @@ -71,6 +71,7 @@ cherry_window_new(void) XSetForeground(app->display, w->gc, BlackPixel(app->display, app->screen)); clist_add(&(app->windows), w); + XSaveContext(app->display, w->window_handler, app->context, (XPointer) w); return w; } |