From d3dc43d65a5386f28664981ea992396354975cbb Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 22 Mar 2019 14:20:11 +0100 Subject: [PATCH] Remove resize callback A resize triggers an Expose event and we are going to handle changed windows sizes there. So remove resize callback. --- xwin.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/xwin.c b/xwin.c index b60ea4d..f74cfb1 100644 --- a/xwin.c +++ b/xwin.c @@ -334,15 +334,6 @@ a_removehelp(Widget w, XEvent* event, String* params, Cardinal* num_params) * callback routines */ -static void -c_resize(Widget w, XtPointer data, XEvent* event, Boolean* continue_to_dispatch) -{ - UNUSED(w, data, event, continue_to_dispatch); - /* - * printf("Resize\n"); - */ - xrepaint(); -} static void c_repaint(Widget w, XtPointer data, XEvent* event, Boolean* continue_to_dispatch) @@ -440,7 +431,6 @@ int xsetup(int* argcp, char** argv) * events */ XtAddEventHandler(w, ExposureMask, False, c_repaint, NULL); - XtAddEventHandler(w, StructureNotifyMask, False, c_resize, NULL); XtAugmentTranslations(w, trans_table); XtRealizeWidget(toplevel);