Mercurial > emacs
comparison src/xterm.c @ 42773:a9d49e89d31f
(XTread_socket) [!USE_X_TOOLKIT]: Compute the value of `dont_resize' only
when used.
author | Pavel Janík <Pavel@Janik.cz> |
---|---|
date | Wed, 16 Jan 2002 06:48:06 +0000 |
parents | 839386cf6e9b |
children | dee88a860452 |
comparison
equal
deleted
inserted
replaced
42772:f50b1207e03c | 42773:a9d49e89d31f |
---|---|
7655 | 7655 |
7656 #endif /* not 0 */ | 7656 #endif /* not 0 */ |
7657 | 7657 |
7658 | 7658 |
7659 /* Find the position of the glyph for position POS in OBJECT in | 7659 /* Find the position of the glyph for position POS in OBJECT in |
7660 window W's current matrix, and return in *X/*Y the pixel | 7660 window W's current matrix, and return in *X, *Y the pixel |
7661 coordinates, and return in *HPOS/*VPOS the column/row of the glyph. | 7661 coordinates, and return in *HPOS, *VPOS the column/row of the glyph. |
7662 | 7662 |
7663 RIGHT_P non-zero means return the position of the right edge of the | 7663 RIGHT_P non-zero means return the position of the right edge of the |
7664 glyph, RIGHT_P zero means return the left edge position. | 7664 glyph, RIGHT_P zero means return the left edge position. |
7665 | 7665 |
7666 If no glyph for POS exists in the matrix, return the position of | 7666 If no glyph for POS exists in the matrix, return the position of |
10846 | 10846 |
10847 case ConfigureNotify: | 10847 case ConfigureNotify: |
10848 f = x_top_window_to_frame (dpyinfo, event.xconfigure.window); | 10848 f = x_top_window_to_frame (dpyinfo, event.xconfigure.window); |
10849 if (f) | 10849 if (f) |
10850 { | 10850 { |
10851 #ifndef USE_X_TOOLKIT | |
10851 /* If there is a pending resize for fullscreen, don't | 10852 /* If there is a pending resize for fullscreen, don't |
10852 do this one, the right one will come later. | 10853 do this one, the right one will come later. |
10853 The toolkit version doesn't seem to need this, but we | 10854 The toolkit version doesn't seem to need this, but we |
10854 need to reset it below. */ | 10855 need to reset it below. */ |
10855 int dont_resize = | 10856 int dont_resize = |
10856 ((f->output_data.x->want_fullscreen & FULLSCREEN_WAIT) | 10857 ((f->output_data.x->want_fullscreen & FULLSCREEN_WAIT) |
10857 && FRAME_NEW_WIDTH (f) != 0); | 10858 && FRAME_NEW_WIDTH (f) != 0); |
10858 #ifndef USE_X_TOOLKIT | |
10859 int rows = PIXEL_TO_CHAR_HEIGHT (f, event.xconfigure.height); | 10859 int rows = PIXEL_TO_CHAR_HEIGHT (f, event.xconfigure.height); |
10860 int columns = PIXEL_TO_CHAR_WIDTH (f, event.xconfigure.width); | 10860 int columns = PIXEL_TO_CHAR_WIDTH (f, event.xconfigure.width); |
10861 if (dont_resize) | 10861 if (dont_resize) |
10862 goto OTHER; | 10862 goto OTHER; |
10863 | 10863 |