emacs-devel
[Top][All Lists]
Advanced

[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: Feng Shu
Subject: Re: Child-frame can not move to proper position when run "env GDK_SCALE=2 emacs"
Date: Tue, 09 Jan 2018 07:03:23 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux)

martin rudalics <address@hidden> writes:

>> 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?

When (/ x 2) and (/ y 2), It works! :-)

>
> We do not expose the GTK/GDK scale values in Lisp, maybe we should.
> Robert any ideas?
>
> martin
>

-- 




reply via email to

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