]> code.delx.au - gnu-emacs/commitdiff
* xterm.c (XTread_socket): Remove #if 0''s around code which tests
authorJim Blandy <jimb@redhat.com>
Thu, 24 Jun 1993 01:34:33 +0000 (01:34 +0000)
committerJim Blandy <jimb@redhat.com>
Thu, 24 Jun 1993 01:34:33 +0000 (01:34 +0000)
for dropped connection (i.e. sigio but no events).

src/xterm.c

index ca199762527a5df768ff2e1a8505fc9d9c2bab2d..bc14b6ff00950e2c19267d06b458edb390b931b1 100644 (file)
@@ -3268,7 +3268,6 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
        }
     }
 
-#if 0
 #ifdef HAVE_SELECT
   if (expected && ! event_found)
     {
@@ -3285,7 +3284,6 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
        kill (getpid (), SIGHUP);
     }
 #endif /* ! defined (HAVE_SELECT) */
-#endif /* ! 0 */
 
 #ifndef HAVE_X11
   if (updating_frame == 0)
@@ -4083,12 +4081,16 @@ x_calc_absolute_position (f)
 {
 #ifdef HAVE_X11
   if (f->display.x->left_pos < 0)
-    f->display.x->left_pos
-      = x_screen_width - PIXEL_WIDTH (f) + f->display.x->left_pos;
+    f->display.x->left_pos = (x_screen_width 
+                             - 2 * f->display.x->border_width
+                             - PIXEL_WIDTH (f)
+                             + f->display.x->left_pos);
 
   if (f->display.x->top_pos < 0)
-    f->display.x->top_pos
-      = x_screen_height - PIXEL_HEIGHT (f) + f->display.x->top_pos;
+    f->display.x->top_pos = (x_screen_height
+                            - 2 * f->display.x->border_width
+                            - PIXEL_HEIGHT (f)
+                            + f->display.x->top_pos);
 #else /* ! defined (HAVE_X11) */
   WINDOWINFO_TYPE parentinfo;