]> git.eshelyaron.com Git - emacs.git/commitdiff
In nsterm.m use FRAME_NS_P instead of FRAME_X_P (Bug#30019)
authorMartin Rudalics <rudalics@gmx.at>
Sat, 13 Jan 2018 07:59:31 +0000 (08:59 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Sat, 13 Jan 2018 07:59:31 +0000 (08:59 +0100)
* src/nsterm.m (x_set_parent_frame): Call FRAME_NS_P instead
of FRAME_X_P (Bug#30019).

src/nsterm.m

index 419a37033f77de2282922d574c1d2e679dc36416..51a53828b5b563597e041360d9ca13f2fac50411 100644 (file)
@@ -1946,7 +1946,7 @@ x_set_parent_frame (struct frame *f, Lisp_Object new_value, Lisp_Object old_valu
   if (!NILP (new_value)
       && (!FRAMEP (new_value)
          || !FRAME_LIVE_P (p = XFRAME (new_value))
-         || !FRAME_X_P (p)))
+         || !FRAME_NS_P (p)))
     {
       store_frame_param (f, Qparent_frame, old_value);
       error ("Invalid specification of `parent-frame'");