emacs-devel
[Top][All Lists]
Advanced

[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: Sat, 25 Jan 2020 09:41:56 +0100

> ----------------------------------------------------------------
> # in xfce4, gtk emacs
> ----------------------------------------------------------------
> Frame size history of #<frame test child-frame 0x555960081020>
> adjust-frame-size-1      (440 240 440 480) (height 1)
> adjust-frame-size-2      (440 240 440 480) (nil nil)
> xg-frame-set-char-size-3 (440 240 440 480) (456 480)
> xg-frame-resized         (440 240 440 480) nil
> adjust-frame-size-1      (440 240 440 480) (change-frame-size 5)
> adjust-frame-size-3      (440 240 440 480) (456 240 456 480)
> adjust-frame-size-1      (440 480 440 480) (height 1)
>
> -----------------------------------------------------------------
> # in gnome shell, gtk emacs
> ------------------------------------------------------------------
> Frame size history of #<frame test child-frame 0x56253dbbf000>
> adjust-frame-size-1      (440 240 440 480) (height 1)
> adjust-frame-size-2      (440 240 440 480) (nil nil)
> xg-frame-set-char-size-3 (440 240 440 480) (456 480)

OK.  So we apparently do not get the 'xg-frame-resized' event for
mutter.  One final check that it's not lost by Emacs itself:

(1) Run this experiment under gdb putting a breakpoint in
    'set-frame-height' for example at the line

  adjust_frame_size (f, -1, pixel_height, 1, !NILP (pretend), Qheight);

(2) When you hit the breakpoint from (1) put another one on the line

      configureEvent = *event;

    in xterm.c and continue via "c".

(3) Tell me if the breakpoint from (2) is hit.

Thanks, martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]