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: Dmitry Gutov
Subject: Re: Emacs's set-frame-size can not work well with gnome-shell?
Date: Wed, 22 Jan 2020 16:32:02 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 22.01.2020 16:18, tumashu wrote:
I think it is set-frame-position's reason,   posframe have positon cache, so if 
posframe's position no
change, it will fast, if position changed, it will show half second lags

(require 'posframe)

(posframe-show "test" :string "aaaaaaaa"
                :background-color "red")

```
(setq child-frame
       (with-current-buffer "test"
         posframe--frame))

(setq p nil)

(defun test ()
   (setq p (if (equal p '(10 10))
               '(100 100)
             '(10 10)))
   (set-frame-position child-frame (car p) (cadr p)))

(benchmark 5 '(test))
```

"Elapsed time: 1.063156s"

Thanks, I can confirm this. Only it's even longer in my case (2.63s).

Dragging with mode-line is similarly sluggish. Guess I didn't test that properly before.



reply via email to

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