[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs's set-frame-size can not work well with gnome-shell?
From: |
martin rudalics |
Subject: |
Re: Emacs's set-frame-size can not work well with gnome-shell? |
Date: |
Thu, 16 Jan 2020 09:03:52 +0100 |
>> Can you move around 'test-frame' by mouse-dragging its mode line?
>
> I can't make it work at all, neither in the child frame, nor in any normal
frame, independent of how the frame parameter was set.
Sorry, it works only for minibuffer-less (or minibuffer-only) child
frames. The following snippet should work:
(custom-set-faces
'(internal-border ((t (:background "red")))))
(defun open-test (buffer)
(display-buffer-in-child-frame
buffer '((child-frame-parameters
. ((width . 40)
(height . 10)
(top . 50)
(left . 50)
(minibuffer . nil)
(internal-border-width . 10)
(drag-internal-border . t)
(drag-with-mode-line . t)
)))))
(setq-local test-buffer (get-buffer-create "*test child-frame*"))
(setq-local test-frame (window-frame (open-test test-buffer)))
This should allow to (1) drag the frame around with mouse-1 down on the
mode line and (2) draw a 10 pixel wide red internal border (color
visible only after a redisplay, maybe) I can use here to resize the
frame with mouse-1 (Emacs resizing natively). Both work quite snappy
here with an optimized build running under Xfce on an old-stable Debian.
Feedback from other (not necessarily company-) users welcome.
martin
- Re: Emacs's set-frame-size can not work well with gnome-shell?, (continued)
- Re: Emacs's set-frame-size can not work well with gnome-shell?, martin rudalics, 2020/01/11
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/01/11
- Re: Emacs's set-frame-size can not work well with gnome-shell?, martin rudalics, 2020/01/11
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/01/11
- Re: Emacs's set-frame-size can not work well with gnome-shell?, martin rudalics, 2020/01/11
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/01/13
- Re: Emacs's set-frame-size can not work well with gnome-shell?, martin rudalics, 2020/01/14
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/01/14
- Re: Emacs's set-frame-size can not work well with gnome-shell?, martin rudalics, 2020/01/15
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/01/15
- Re: Emacs's set-frame-size can not work well with gnome-shell?,
martin rudalics <=
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/01/16
- Re: Emacs's set-frame-size can not work well with gnome-shell?, martin rudalics, 2020/01/16
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/01/16
- Re: Emacs's set-frame-size can not work well with gnome-shell?, martin rudalics, 2020/01/16
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/01/16
- Re: Emacs's set-frame-size can not work well with gnome-shell?, martin rudalics, 2020/01/16
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/01/16
- Re: Emacs's set-frame-size can not work well with gnome-shell?, martin rudalics, 2020/01/16
- Re: Emacs's set-frame-size can not work well with gnome-shell?, martin rudalics, 2020/01/16
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/01/16