glazier

the original window manipulator
Log | Files | Refs | Submodules | README | LICENSE

commit ad2704a6afc551fed0a65ef0324c6f3b89a83ae0
parent 4fb8675c4c39fd3bbd05d8a354d262fb08c4198b
Author: Willy Goiffon <dev@z3bra.org>
Date:   Thu, 24 Oct 2019 23:49:53 +0200

Remove unneeded configure_notify handler

Diffstat:
glazier.c | 19-------------------
1 file changed, 0 insertions(+), 19 deletions(-)

diff --git a/glazier.c b/glazier.c @@ -33,7 +33,6 @@ static int cb_mouse_release(xcb_generic_event_t *); static int cb_motion(xcb_generic_event_t *); static int cb_enter(xcb_generic_event_t *); static int cb_focus(xcb_generic_event_t *); -static int cb_configure(xcb_generic_event_t *); static int cb_configreq(xcb_generic_event_t *); int verbose = 0; @@ -86,7 +85,6 @@ static const struct ev_callback_t cb[] = { { XCB_ENTER_NOTIFY, cb_enter }, { XCB_FOCUS_IN, cb_focus }, { XCB_FOCUS_OUT, cb_focus }, - { XCB_CONFIGURE_NOTIFY, cb_configure }, { XCB_CONFIGURE_REQUEST, cb_configreq }, }; @@ -378,23 +376,6 @@ cb_focus(xcb_generic_event_t *ev) } static int -cb_configure(xcb_generic_event_t *ev) -{ - xcb_configure_notify_event_t *e; - - e = (xcb_configure_notify_event_t *)ev; - - if (e->override_redirect) - return 0; - - if (verbose) - fprintf(stderr, "%s 0x%08x %dx%d+%d+%d\n", - XEV(e), e->window, e->width, e->height, e->x, e->y); - - return 0; -} - -static int cb_configreq(xcb_generic_event_t *ev) { int x, y, w, h;