/[emacs]/emacs/src/xterm.c
ViewVC logotype

Diff of /emacs/src/xterm.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.814 by jhd, Sun Oct 5 12:15:37 2003 UTC revision 1.815 by jhd, Sun Oct 5 13:42:03 2003 UTC
# Line 8337  x_set_offset (f, xoff, yoff, change_grav Line 8337  x_set_offset (f, xoff, yoff, change_grav
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),
# Line 8399  x_check_expected_move (f) Line 8402  x_check_expected_move (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)

Legend:
Removed from v.1.814  
changed lines
  Added in v.1.815

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26