diff options
| author | Jan Djärv | 2003-10-05 13:42:04 +0000 |
|---|---|---|
| committer | Jan Djärv | 2003-10-05 13:42:04 +0000 |
| commit | 068ae0fd96c6bbd9aaa3b3d96232cf548749a36d (patch) | |
| tree | f81a93a29681e6d45d53c696b9d7d41ad8f0b219 /src/w32term.c | |
| parent | 96f09305d6345236220a4c705688c63210b5b890 (diff) | |
| download | emacs-068ae0fd96c6bbd9aaa3b3d96232cf548749a36d.tar.gz emacs-068ae0fd96c6bbd9aaa3b3d96232cf548749a36d.zip | |
* w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
that function is removed.
* xterm.c (x_set_offset): Use move_offset_left/top instead of
x/y_pixels_outer_diff.
(x_check_expected_move): Calculate move_offset_left/top.
* xterm.h (struct x_output): New members: move_offset_top/left.
* frame.c (x_set_frame_parameters): x_fullscreen_move removed,
call x_set_offset directly.
* frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
Diffstat (limited to 'src/w32term.c')
| -rw-r--r-- | src/w32term.c | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/src/w32term.c b/src/w32term.c index 27f221d06ca..3e4543471c3 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -3064,7 +3064,6 @@ note_mouse_movement (frame, msg) | |||
| 3064 | static struct scroll_bar *x_window_to_scroll_bar (); | 3064 | static struct scroll_bar *x_window_to_scroll_bar (); |
| 3065 | static void x_scroll_bar_report_motion (); | 3065 | static void x_scroll_bar_report_motion (); |
| 3066 | static void x_check_fullscreen P_ ((struct frame *)); | 3066 | static void x_check_fullscreen P_ ((struct frame *)); |
| 3067 | static void x_check_fullscreen_move P_ ((struct frame *)); | ||
| 3068 | static int glyph_rect P_ ((struct frame *f, int, int, RECT *)); | 3067 | static int glyph_rect P_ ((struct frame *f, int, int, RECT *)); |
| 3069 | 3068 | ||
| 3070 | 3069 | ||
| @@ -4476,7 +4475,6 @@ w32_read_socket (sd, bufp, numchars, expected) | |||
| 4476 | f = x_window_to_frame (dpyinfo, msg.msg.hwnd); | 4475 | f = x_window_to_frame (dpyinfo, msg.msg.hwnd); |
| 4477 | if (f) | 4476 | if (f) |
| 4478 | { | 4477 | { |
| 4479 | x_check_fullscreen_move(f); | ||
| 4480 | if (f->want_fullscreen & FULLSCREEN_WAIT) | 4478 | if (f->want_fullscreen & FULLSCREEN_WAIT) |
| 4481 | f->want_fullscreen &= ~(FULLSCREEN_WAIT|FULLSCREEN_BOTH); | 4479 | f->want_fullscreen &= ~(FULLSCREEN_WAIT|FULLSCREEN_BOTH); |
| 4482 | } | 4480 | } |
| @@ -5442,9 +5440,7 @@ x_check_fullscreen (f) | |||
| 5442 | x_fullscreen_adjust (f, &width, &height, &ign, &ign); | 5440 | x_fullscreen_adjust (f, &width, &height, &ign, &ign); |
| 5443 | 5441 | ||
| 5444 | /* We do not need to move the window, it shall be taken care of | 5442 | /* We do not need to move the window, it shall be taken care of |
| 5445 | when setting WM manager hints. | 5443 | when setting WM manager hints. */ |
| 5446 | If the frame is visible already, the position is checked by | ||
| 5447 | x_check_fullscreen_move. */ | ||
| 5448 | if (FRAME_COLS (f) != width || FRAME_LINES (f) != height) | 5444 | if (FRAME_COLS (f) != width || FRAME_LINES (f) != height) |
| 5449 | { | 5445 | { |
| 5450 | change_frame_size (f, height, width, 0, 1, 0); | 5446 | change_frame_size (f, height, width, 0, 1, 0); |
| @@ -5457,36 +5453,6 @@ x_check_fullscreen (f) | |||
| 5457 | } | 5453 | } |
| 5458 | } | 5454 | } |
| 5459 | 5455 | ||
| 5460 | /* If frame parameters are set after the frame is mapped, we need to move | ||
| 5461 | the window. This is done in xfns.c. | ||
| 5462 | Some window managers moves the window to the right position, some | ||
| 5463 | moves the outer window manager window to the specified position. | ||
| 5464 | Here we check that we are in the right spot. If not, make a second | ||
| 5465 | move, assuming we are dealing with the second kind of window manager. */ | ||
| 5466 | static void | ||
| 5467 | x_check_fullscreen_move (f) | ||
| 5468 | struct frame *f; | ||
| 5469 | { | ||
| 5470 | if (f->want_fullscreen & FULLSCREEN_MOVE_WAIT) | ||
| 5471 | { | ||
| 5472 | int expect_top = f->top_pos; | ||
| 5473 | int expect_left = f->left_pos; | ||
| 5474 | |||
| 5475 | if (f->want_fullscreen & FULLSCREEN_HEIGHT) | ||
| 5476 | expect_top = 0; | ||
| 5477 | if (f->want_fullscreen & FULLSCREEN_WIDTH) | ||
| 5478 | expect_left = 0; | ||
| 5479 | |||
| 5480 | if (expect_top != f->top_pos | ||
| 5481 | || expect_left != f->left_pos) | ||
| 5482 | x_set_offset (f, expect_left, expect_top, 1); | ||
| 5483 | |||
| 5484 | /* Just do this once */ | ||
| 5485 | f->want_fullscreen &= ~FULLSCREEN_MOVE_WAIT; | ||
| 5486 | } | ||
| 5487 | } | ||
| 5488 | |||
| 5489 | |||
| 5490 | /* Call this to change the size of frame F's x-window. | 5456 | /* Call this to change the size of frame F's x-window. |
| 5491 | If CHANGE_GRAVITY is 1, we change to top-left-corner window gravity | 5457 | If CHANGE_GRAVITY is 1, we change to top-left-corner window gravity |
| 5492 | for this size change and subsequent size changes. | 5458 | for this size change and subsequent size changes. |