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/xterm.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/xterm.c')
| -rw-r--r-- | src/xterm.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c index c563757e63b..c686824a003 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -8337,8 +8337,11 @@ x_set_offset (f, xoff, yoff, change_gravity) | |||
| 8337 | 8337 | ||
| 8338 | if (FRAME_X_DISPLAY_INFO (f)->wm_type == X_WMTYPE_A) | 8338 | if (FRAME_X_DISPLAY_INFO (f)->wm_type == X_WMTYPE_A) |
| 8339 | { | 8339 | { |
| 8340 | modified_left += FRAME_X_OUTPUT (f)->x_pixels_outer_diff; | 8340 | /* Some WMs (twm, wmaker at least) has an offset that is smaller |
| 8341 | modified_top += FRAME_X_OUTPUT (f)->y_pixels_outer_diff; | 8341 | than the WM decorations. So we use the calculated offset instead |
| 8342 | of the WM decoration sizes here (x/y_pixels_outer_diff). */ | ||
| 8343 | modified_left += FRAME_X_OUTPUT (f)->move_offset_left; | ||
| 8344 | modified_top += FRAME_X_OUTPUT (f)->move_offset_top; | ||
| 8342 | } | 8345 | } |
| 8343 | 8346 | ||
| 8344 | XMoveWindow (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), | 8347 | XMoveWindow (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), |
| @@ -8399,11 +8402,13 @@ x_check_expected_move (f) | |||
| 8399 | { | 8402 | { |
| 8400 | int expect_top = FRAME_X_OUTPUT (f)->expected_top; | 8403 | int expect_top = FRAME_X_OUTPUT (f)->expected_top; |
| 8401 | int expect_left = FRAME_X_OUTPUT (f)->expected_left; | 8404 | int expect_left = FRAME_X_OUTPUT (f)->expected_left; |
| 8402 | 8405 | ||
| 8403 | if (expect_top != f->top_pos || expect_left != f->left_pos) | 8406 | if (expect_top != f->top_pos || expect_left != f->left_pos) |
| 8404 | { | 8407 | { |
| 8405 | if (FRAME_X_DISPLAY_INFO (f)->wm_type == X_WMTYPE_UNKNOWN) | 8408 | FRAME_X_DISPLAY_INFO (f)->wm_type = X_WMTYPE_A; |
| 8406 | FRAME_X_DISPLAY_INFO (f)->wm_type = X_WMTYPE_A; | 8409 | FRAME_X_OUTPUT (f)->move_offset_left = expect_left - f->left_pos; |
| 8410 | FRAME_X_OUTPUT (f)->move_offset_top = expect_top - f->top_pos; | ||
| 8411 | |||
| 8407 | x_set_offset (f, expect_left, expect_top, 1); | 8412 | x_set_offset (f, expect_left, expect_top, 1); |
| 8408 | } | 8413 | } |
| 8409 | else if (FRAME_X_DISPLAY_INFO (f)->wm_type == X_WMTYPE_UNKNOWN) | 8414 | else if (FRAME_X_DISPLAY_INFO (f)->wm_type == X_WMTYPE_UNKNOWN) |