Mercurial > emacs
comparison src/xterm.c @ 52754:d08832a11cfd
* 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.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Sun, 05 Oct 2003 13:42:04 +0000 |
parents | 551e8ebadb62 |
children | 19c95cdf2c4a |
comparison
equal
deleted
inserted
replaced
52753:551e8ebadb62 | 52754:d08832a11cfd |
---|---|
8335 } | 8335 } |
8336 #endif | 8336 #endif |
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), |
8345 modified_left, modified_top); | 8348 modified_left, modified_top); |
8346 | 8349 |
8397 { | 8400 { |
8398 if (FRAME_X_OUTPUT (f)->check_expected_move) | 8401 if (FRAME_X_OUTPUT (f)->check_expected_move) |
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) |
8410 FRAME_X_DISPLAY_INFO (f)->wm_type = X_WMTYPE_B; | 8415 FRAME_X_DISPLAY_INFO (f)->wm_type = X_WMTYPE_B; |
8411 | 8416 |