comparison src/xterm.c @ 92368:2294f240e1e5

(handle_one_xevent): For Gtk+ and ConfigureNotify, call xg_frame_resized when the event is for the edit widget.
author Jan Djärv <jan.h.d@swipnet.se>
date Sat, 01 Mar 2008 14:59:06 +0000
parents bac4e21de93b
children ff7a3592c48b
comparison
equal deleted inserted replaced
92367:1402432968c4 92368:2294f240e1e5
6986 goto OTHER; 6986 goto OTHER;
6987 } 6987 }
6988 6988
6989 case ConfigureNotify: 6989 case ConfigureNotify:
6990 f = x_top_window_to_frame (dpyinfo, event.xconfigure.window); 6990 f = x_top_window_to_frame (dpyinfo, event.xconfigure.window);
6991 #ifdef USE_GTK
6992 if (!f
6993 && (f = x_any_window_to_frame (dpyinfo, event.xconfigure.window))
6994 && event.xconfigure.window == FRAME_X_WINDOW (f))
6995 {
6996 xg_frame_resized (f, event.xconfigure.width,
6997 event.xconfigure.height);
6998 f = 0;
6999 }
7000 #endif
6991 if (f) 7001 if (f)
6992 { 7002 {
6993 #ifndef USE_X_TOOLKIT 7003 #ifndef USE_X_TOOLKIT
6994 #ifdef USE_GTK 7004 #ifndef USE_GTK
6995 xg_resize_widgets (f, event.xconfigure.width,
6996 event.xconfigure.height);
6997 #else /* not USE_GTK */
6998 /* If there is a pending resize for fullscreen, don't 7005 /* If there is a pending resize for fullscreen, don't
6999 do this one, the right one will come later. 7006 do this one, the right one will come later.
7000 The toolkit version doesn't seem to need this, but we 7007 The toolkit version doesn't seem to need this, but we
7001 need to reset it below. */ 7008 need to reset it below. */
7002 int dont_resize 7009 int dont_resize
7022 { 7029 {
7023 change_frame_size (f, rows, columns, 0, 1, 0); 7030 change_frame_size (f, rows, columns, 0, 1, 0);
7024 SET_FRAME_GARBAGED (f); 7031 SET_FRAME_GARBAGED (f);
7025 cancel_mouse_face (f); 7032 cancel_mouse_face (f);
7026 } 7033 }
7027 #endif /* not USE_GTK */
7028 #endif
7029 7034
7030 FRAME_PIXEL_WIDTH (f) = event.xconfigure.width; 7035 FRAME_PIXEL_WIDTH (f) = event.xconfigure.width;
7031 FRAME_PIXEL_HEIGHT (f) = event.xconfigure.height; 7036 FRAME_PIXEL_HEIGHT (f) = event.xconfigure.height;
7037 #endif /* not USE_GTK */
7038 #endif
7032 7039
7033 #ifdef USE_GTK 7040 #ifdef USE_GTK
7034 /* GTK creates windows but doesn't map them. 7041 /* GTK creates windows but doesn't map them.
7035 Only get real positions and check fullscreen when mapped. */ 7042 Only get real positions and check fullscreen when mapped. */
7036 if (FRAME_GTK_OUTER_WIDGET (f) 7043 if (FRAME_GTK_OUTER_WIDGET (f)