diff options
| author | Jim Blandy | 1993-06-24 01:34:33 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-06-24 01:34:33 +0000 |
| commit | 31ea78fd30fb94440da323ae149571e2e7de7778 (patch) | |
| tree | cf632909caf6bd087c6e129726b6c2d700ca8638 | |
| parent | 878a08272599be5e5ee1b971f08a810f93209fd3 (diff) | |
| download | emacs-31ea78fd30fb94440da323ae149571e2e7de7778.tar.gz emacs-31ea78fd30fb94440da323ae149571e2e7de7778.zip | |
* xterm.c (XTread_socket): Remove #if 0''s around code which tests
for dropped connection (i.e. sigio but no events).
| -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 | ||