8337 |
|
|
8338 |
if (FRAME_X_DISPLAY_INFO (f)->wm_type == X_WMTYPE_A) |
if (FRAME_X_DISPLAY_INFO (f)->wm_type == X_WMTYPE_A) |
8339 |
{ |
{ |
8340 |
modified_left += FRAME_X_OUTPUT (f)->x_pixels_outer_diff; |
/* Some WMs (twm, wmaker at least) has an offset that is smaller |
8341 |
modified_top += FRAME_X_OUTPUT (f)->y_pixels_outer_diff; |
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; |
8345 |
} |
} |
8346 |
|
|
8347 |
XMoveWindow (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), |
XMoveWindow (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), |
8402 |
{ |
{ |
8403 |
int expect_top = FRAME_X_OUTPUT (f)->expected_top; |
int expect_top = FRAME_X_OUTPUT (f)->expected_top; |
8404 |
int expect_left = FRAME_X_OUTPUT (f)->expected_left; |
int expect_left = FRAME_X_OUTPUT (f)->expected_left; |
8405 |
|
|
8406 |
if (expect_top != f->top_pos || expect_left != f->left_pos) |
if (expect_top != f->top_pos || expect_left != f->left_pos) |
8407 |
{ |
{ |
8408 |
if (FRAME_X_DISPLAY_INFO (f)->wm_type == X_WMTYPE_UNKNOWN) |
FRAME_X_DISPLAY_INFO (f)->wm_type = X_WMTYPE_A; |
8409 |
FRAME_X_DISPLAY_INFO (f)->wm_type = X_WMTYPE_A; |
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 |
|
|
8412 |
x_set_offset (f, expect_left, expect_top, 1); |
x_set_offset (f, expect_left, expect_top, 1); |
8413 |
} |
} |
8414 |
else if (FRAME_X_DISPLAY_INFO (f)->wm_type == X_WMTYPE_UNKNOWN) |
else if (FRAME_X_DISPLAY_INFO (f)->wm_type == X_WMTYPE_UNKNOWN) |