]> git.eshelyaron.com Git - emacs.git/commitdiff
* xmenu.c (free_frame_menubar): Only call x_set_window_size if
authorJan D <jan.h.d@swipnet.se>
Fri, 16 Jul 2010 07:50:37 +0000 (09:50 +0200)
committerJan D <jan.h.d@swipnet.se>
Fri, 16 Jul 2010 07:50:37 +0000 (09:50 +0200)
widget is non-null (Bug#6645).

src/ChangeLog
src/xmenu.c

index 35c4294a9f64d0deafc46bf3328130888eb0f45e..04e74667bc3a39415b61a46e4352bce106800c8e 100644 (file)
@@ -1,3 +1,8 @@
+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):
index 8da68c6d87653892319d1dc08b091cff9469b88c..82b315f83cb9f38f545dd0ed21df3982cc241828 100644 (file)
@@ -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;
     }
 }