7

That is, how can I (from Lisp) create a frame similar to the one that x_create_tip_frame (called by x-show-tip in the C sources) creates when x-gtk-use-system-tooltips is nil?

My original guess was that the relevant part of the C code was this call:

x_default_parameter (f, parms, Qborder_width, make_number (0),
             "borderWidth", "BorderWidth", RES_TYPE_NUMBER);

Unfortunately, neither (set-frame-param (selected-frame) 'border-width 0) nor (make-frame '((border-width . 0))) (both inspired from the call above) yield a borderless frame. Still, x-show-tip works fine, so there must be a reliable way :)

Bottom line: How do I create a frame without a border added by the window manager?

3

1 Answer 1

4

Emacs 26 now has an undecorated frame parameter for this purpose:

(make-frame '((undecorated . t)))

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25408#77

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.