changeset 45968:6bf20f37b7c7

(check_x_display_info): Use check_x_frame.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 22 Jun 2002 21:13:11 +0000
parents 5568001934d1
children 9436aa954ea3
files src/xfns.c
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Sat Jun 22 21:09:55 2002 +0000
+++ b/src/xfns.c	Sat Jun 22 21:13:11 2002 +0000
@@ -301,12 +301,7 @@
     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);
     }