handle destroynotify events
This commit is contained in:
parent
d973f30fc2
commit
c4d87e2f81
|
@ -97,7 +97,7 @@ int handle_configure_request(void *prophs, xcb_connection_t *conn,
|
|||
*
|
||||
*/
|
||||
int handle_unmap_notify_event(void *data, xcb_connection_t *conn, xcb_unmap_notify_event_t *event);
|
||||
#if 0
|
||||
|
||||
/**
|
||||
* A destroy notify event is sent when the window is not unmapped, but
|
||||
* immediately destroyed (for example when starting a window and immediately
|
||||
|
@ -110,7 +110,6 @@ int handle_unmap_notify_event(void *data, xcb_connection_t *conn, xcb_unmap_noti
|
|||
int handle_destroy_notify_event(void *data, xcb_connection_t *conn,
|
||||
xcb_destroy_notify_event_t *event);
|
||||
|
||||
#endif
|
||||
/**
|
||||
* Called when a window changes its title
|
||||
*
|
||||
|
|
|
@ -507,7 +507,6 @@ int handle_unmap_notify_event(void *data, xcb_connection_t *conn, xcb_unmap_noti
|
|||
return 1;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/*
|
||||
* A destroy notify event is sent when the window is not unmapped, but
|
||||
* immediately destroyed (for example when starting a window and immediately
|
||||
|
@ -527,7 +526,7 @@ int handle_destroy_notify_event(void *data, xcb_connection_t *conn, xcb_destroy_
|
|||
|
||||
return handle_unmap_notify_event(NULL, conn, &unmap);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Called when a window changes its title
|
||||
*
|
||||
|
|
2
src/nc.c
2
src/nc.c
|
@ -272,7 +272,7 @@ int main(int argc, char *argv[]) {
|
|||
xcb_event_set_map_request_handler(&evenths, handle_map_request, NULL);
|
||||
|
||||
xcb_event_set_unmap_notify_handler(&evenths, handle_unmap_notify_event, NULL);
|
||||
//xcb_event_set_destroy_notify_handler(&evenths, handle_destroy_notify_event, NULL);
|
||||
xcb_event_set_destroy_notify_handler(&evenths, handle_destroy_notify_event, NULL);
|
||||
|
||||
xcb_event_set_expose_handler(&evenths, handle_expose_event, NULL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue