summaryrefslogtreecommitdiff
path: root/mcwm.c
diff options
context:
space:
mode:
authorMC <mc@hack.org>2010-06-20 17:21:38 +0200
committerMC <mc@hack.org>2010-06-20 17:21:38 +0200
commita8c3f8943829dc7c8c4a6455ba8f0c4c2e522607 (patch)
tree7f975c4d47d2d82824f1bd445ffa43fc824ee588 /mcwm.c
parent56fe73388e1575a0647c57dab6701a43d4393688 (diff)
downloadmcwm-a8c3f8943829dc7c8c4a6455ba8f0c4c2e522607.zip
Oops. Wrong types.
Diffstat (limited to 'mcwm.c')
-rw-r--r--mcwm.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/mcwm.c b/mcwm.c
index d253357..59f9991 100644
--- a/mcwm.c
+++ b/mcwm.c
@@ -996,24 +996,22 @@ void events(void)
switch (ev->response_type & ~0x80)
{
-
- /* If we're the only wm, we get these when a new window is created. */
case XCB_MAP_REQUEST:
{
- xcb_create_notify_event_t *e;
+ xcb_map_request_event_t *e;
PDEBUG("event: Map request.\n");
- e = ( xcb_create_notify_event_t *) ev;
+ e = (xcb_map_request_event_t *) ev;
newwin(e->window);
}
break;
case XCB_DESTROY_NOTIFY:
{
- xcb_create_notify_event_t *e;
+ xcb_destroy_notify_event_t *e;
PDEBUG("event: Destroy notify.\n");
- e = ( xcb_create_notify_event_t *) ev;
+ e = (xcb_destroy_notify_event_t *) ev;
/* FIXME: Find the window in list of clients. */
}