Skip to content

Commit

Permalink
Remove resize callback
Browse files Browse the repository at this point in the history
A resize triggers an Expose event and we are going to handle changed
windows sizes there. So remove resize callback.
  • Loading branch information
donald committed Mar 22, 2019
1 parent 18c9542 commit d3dc43d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions xwin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d3dc43d

Please sign in to comment.