summaryrefslogtreecommitdiff
path: root/src/frame.c
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2003-10-05 13:42:04 +0000
committerJan Djärv <jan.h.d@swipnet.se>2003-10-05 13:42:04 +0000
commit068ae0fd96c6bbd9aaa3b3d96232cf548749a36d (patch)
treef81a93a29681e6d45d53c696b9d7d41ad8f0b219 /src/frame.c
parent96f09305d6345236220a4c705688c63210b5b890 (diff)
downloademacs-068ae0fd96c6bbd9aaa3b3d96232cf548749a36d.tar.gz
emacs-068ae0fd96c6bbd9aaa3b3d96232cf548749a36d.tar.bz2
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/frame.c')
-rw-r--r--src/frame.c27
1 files changed, 2 insertions, 25 deletions
diff --git a/src/frame.c b/src/frame.c
index 87175e0c6c9..3a3758b93e0 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -2593,30 +2593,6 @@ x_fullscreen_adjust (f, width, height, top_pos, left_pos)
}
-/* Really try to move where we want to be in case of fullscreen. Some WMs
- moves the window where we tell them. Some (mwm, twm) moves the outer
- window manager window there instead.
- Try to compensate for those WM here. */
-
-static void
-x_fullscreen_move (f, new_top, new_left)
- struct frame *f;
- int new_top;
- int new_left;
-{
- if (new_top != f->top_pos || new_left != f->left_pos)
- {
- int move_x = new_left;
- int move_y = new_top;
-
-#ifndef HAVE_X_WINDOWS
- f->want_fullscreen |= FULLSCREEN_MOVE_WAIT;
-#endif
-
- x_set_offset (f, move_x, move_y, 1);
- }
-}
-
/* Change the parameters of frame F as specified by ALIST.
If a parameter is not specially recognized, do nothing special;
otherwise call the `x_set_...' function for that parameter.
@@ -2812,7 +2788,8 @@ x_set_frame_parameters (f, alist)
int new_left, new_top;
x_fullscreen_adjust (f, &width, &height, &new_top, &new_left);
- x_fullscreen_move (f, new_top, new_left);
+ if (new_top != f->top_pos || new_left != f->left_pos)
+ x_set_offset (f, new_left, new_top, 1);
}
#endif