(check_x_display_info): Use check_x_frame.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 22 Jun 2002 21:13:11 +0000 (21:13 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 22 Jun 2002 21:13:11 +0000 (21:13 +0000)
src/xfns.c

index cd3dcdd..757a562 100644 (file)
@@ -301,12 +301,7 @@ check_x_display_info (frame)
     dpyinfo = x_display_info_for_name (frame);
   else
     {
-      FRAME_PTR f;
-
-      CHECK_LIVE_FRAME (frame);
-      f = XFRAME (frame);
-      if (! FRAME_X_P (f))
-       error ("Non-X frame used");
+      FRAME_PTR f = check_x_frame (frame);
       dpyinfo = FRAME_X_DISPLAY_INFO (f);
     }