Commit 23243f29 authored by Jan D's avatar Jan D
Browse files

* xmenu.c (free_frame_menubar): Only call x_set_window_size if

widget is non-null (Bug#6645).
parent 01b564ff
2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
* xmenu.c (free_frame_menubar): Only call x_set_window_size if
widget is non-null (Bug#6645).
2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
 
* xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
......
......@@ -1355,15 +1355,15 @@ free_frame_menubar (FRAME_PTR f)
lw_destroy_all_widgets ((LWLIB_ID) f->output_data.x->id);
f->output_data.x->menubar_widget = NULL;
#ifdef USE_MOTIF
if (f->output_data.x->widget)
{
#ifdef USE_MOTIF
XtVaGetValues (f->output_data.x->widget, XtNx, &x1, XtNy, &y1, NULL);
if (x1 == 0 && y1 == 0)
XtVaSetValues (f->output_data.x->widget, XtNx, x0, XtNy, y0, NULL);
}
#endif
x_set_window_size (f, 0, FRAME_COLS (f), FRAME_LINES (f));
x_set_window_size (f, 0, FRAME_COLS (f), FRAME_LINES (f));
}
UNBLOCK_INPUT;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment