[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Child-frame can not move to proper position when run "env GDK_SCALE=
From: |
martin rudalics |
Subject: |
Re: Child-frame can not move to proper position when run "env GDK_SCALE=2 emacs" |
Date: |
Mon, 08 Jan 2018 19:17:41 +0100 |
> When I run "env GDK_SCALE=2 emacs", the below code can not work properly
>
> ```
> (let ((test (let ((after-make-frame-functions nil))
> (make-frame
> `((parent-frame . ,(window-frame))
> (width . 50)
> (height . 1)))))
> (pos (posn-x-y (posn-at-point (point) (selected-window)))))
> (set-frame-position test (car pos) (cdr pos)))<I>
> ```
>
> When I eval the code at the <I>, the new created frame can not move to
> <I>, it move to the wrong position.
What happens when you divide the pos values by two?
We do not expose the GTK/GDK scale values in Lisp, maybe we should.
Robert any ideas?
martin
- Child-frame can not move to proper position when run "env GDK_SCALE=2 emacs", Feng Shu, 2018/01/08
- Re: Child-frame can not move to proper position when run "env GDK_SCALE=2 emacs",
martin rudalics <=
- Re: Child-frame can not move to proper position when run "env GDK_SCALE=2 emacs", Feng Shu, 2018/01/08
- Re: Child-frame can not move to proper position when run "env GDK_SCALE=2 emacs", martin rudalics, 2018/01/09
- Re: Child-frame can not move to proper position when run "env GDK_SCALE=2 emacs", Robert Pluim, 2018/01/09
- Re: Child-frame can not move to proper position when run "env GDK_SCALE=2 emacs", martin rudalics, 2018/01/10
- Re: Child-frame can not move to proper position when run "env GDK_SCALE=2 emacs", Robert Pluim, 2018/01/10
- Re: Child-frame can not move to proper position when run "env GDK_SCALE=2 emacs", martin rudalics, 2018/01/11
- Re: Child-frame can not move to proper position when run "env GDK_SCALE=2 emacs", Robert Pluim, 2018/01/09
- Re: Child-frame can not move to proper position when run "env GDK_SCALE=2 emacs", Dmitry Gutov, 2018/01/09
- Re: Child-frame can not move to proper position when run "env GDK_SCALE=2 emacs", Stefan Monnier, 2018/01/10
- Re: Child-frame can not move to proper position when run "env GDK_SCALE=2 emacs", Robert Pluim, 2018/01/10