diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/xterm.c b/src/xterm.c index ca199762527..bc14b6ff009 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -3268,7 +3268,6 @@ XTread_socket (sd, bufp, numchars, waitp, expected) | |||
| 3268 | } | 3268 | } |
| 3269 | } | 3269 | } |
| 3270 | 3270 | ||
| 3271 | #if 0 | ||
| 3272 | #ifdef HAVE_SELECT | 3271 | #ifdef HAVE_SELECT |
| 3273 | if (expected && ! event_found) | 3272 | if (expected && ! event_found) |
| 3274 | { | 3273 | { |
| @@ -3285,7 +3284,6 @@ XTread_socket (sd, bufp, numchars, waitp, expected) | |||
| 3285 | kill (getpid (), SIGHUP); | 3284 | kill (getpid (), SIGHUP); |
| 3286 | } | 3285 | } |
| 3287 | #endif /* ! defined (HAVE_SELECT) */ | 3286 | #endif /* ! defined (HAVE_SELECT) */ |
| 3288 | #endif /* ! 0 */ | ||
| 3289 | 3287 | ||
| 3290 | #ifndef HAVE_X11 | 3288 | #ifndef HAVE_X11 |
| 3291 | if (updating_frame == 0) | 3289 | if (updating_frame == 0) |
| @@ -4083,12 +4081,16 @@ x_calc_absolute_position (f) | |||
| 4083 | { | 4081 | { |
| 4084 | #ifdef HAVE_X11 | 4082 | #ifdef HAVE_X11 |
| 4085 | if (f->display.x->left_pos < 0) | 4083 | if (f->display.x->left_pos < 0) |
| 4086 | f->display.x->left_pos | 4084 | f->display.x->left_pos = (x_screen_width |
| 4087 | = x_screen_width - PIXEL_WIDTH (f) + f->display.x->left_pos; | 4085 | - 2 * f->display.x->border_width |
| 4086 | - PIXEL_WIDTH (f) | ||
| 4087 | + f->display.x->left_pos); | ||
| 4088 | 4088 | ||
| 4089 | if (f->display.x->top_pos < 0) | 4089 | if (f->display.x->top_pos < 0) |
| 4090 | f->display.x->top_pos | 4090 | f->display.x->top_pos = (x_screen_height |
| 4091 | = x_screen_height - PIXEL_HEIGHT (f) + f->display.x->top_pos; | 4091 | - 2 * f->display.x->border_width |
| 4092 | - PIXEL_HEIGHT (f) | ||
| 4093 | + f->display.x->top_pos); | ||
| 4092 | #else /* ! defined (HAVE_X11) */ | 4094 | #else /* ! defined (HAVE_X11) */ |
| 4093 | WINDOWINFO_TYPE parentinfo; | 4095 | WINDOWINFO_TYPE parentinfo; |
| 4094 | 4096 | ||