diff options
Diffstat (limited to 'src/xwidget.c')
-rw-r--r-- | src/xwidget.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/xwidget.c b/src/xwidget.c index 28bb056954e..660c4ef9961 100644 --- a/src/xwidget.c +++ b/src/xwidget.c @@ -1554,6 +1554,17 @@ WINDOW if specified, otherwise it uses the selected window. */) return Qnil; } +DEFUN ("set-frame-visible", Fset_frame_visible, Sset_frame_visible, + 2, 2, 0, + doc: /* HACKY */) + (Lisp_Object frame, Lisp_Object flag) +{ + CHECK_FRAME (frame); + struct frame *f = XFRAME (frame); + SET_FRAME_VISIBLE (f, !NILP (flag)); + return flag; +} + DEFUN ("xwidget-plist", Fxwidget_plist, Sxwidget_plist, 1, 1, 0, doc: /* Return the plist of XWIDGET. */) @@ -1627,6 +1638,7 @@ syms_of_xwidget (void) defsubr (&Sxwidget_view_lookup); defsubr (&Sxwidget_query_on_exit_flag); defsubr (&Sset_xwidget_query_on_exit_flag); + defsubr (&Sset_frame_visible); #ifdef HAVE_WEBKIT_OSR defsubr (&Sxwidget_webkit_goto_uri); |