(defun gnuserv-main-frame-function (type)
"Return a sensible value for the main Emacs frame."
(if (or (eq type 'x)
+ (eq type 'gtk)
(eq type 'mswindows))
(car (frame-list))
nil))
This is meant in the X sense, so it will not return frames that are on another
visual screen. Totally visible frames are preferred. If none found, return nil."
(if (or (eq type 'x)
+ (eq type 'gtk)
(eq type 'mswindows))
(cond ((car (filtered-frame-list 'frame-totally-visible-p
(selected-device))))
((null dest-frame)
(case (car type)
(tty (apply 'make-tty-device (cdr type)))
+ (gtk (make-gtk-device))
(x (make-x-device (cadr type)))
(mswindows (make-mswindows-device))
(t (error "Invalid device type"))))