emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs Mac port


From: YAMAMOTO Mitsuharu
Subject: Re: Emacs Mac port
Date: Sun, 18 Sep 2016 17:39:06 +0900
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI)

>>>>> On Sun, 18 Sep 2016 10:15:47 +0200, martin rudalics <address@hidden> said:

>> When `frame-resize-pixelwise' is nil, the previous versions of the Mac
>> port always respected the window size hints and did rounding.  But
>> this appears to interfere with "automatic window tabbing" introduced
>> in macOS 10.12, so I restricted the cases where the size hints is
>> respected.

> I must be still missing something: Originally you said that

>    "we now round the frame size according to the character size only on
>    resize by mouse dragging or changes of the `fullscreen' frame
>    parameter"

> which doesn't make sense to me: Rounding on resize by mouse dragging
> doesn't seem reasonable to me because the frame edge will not follow the
> mouse pointer but rather jump instead.  Rounding when maximizing or
> making a fullscreen frame, however, is much worse because it may leave a
> maximized or fullscreen frame with empty space at anedge of the screen.

> So I'm curious whether your description above just inverts the meaning
> of what you actually do.

Not actually.  I think some of X11 window managers do rounding on
resize by mouse dragging if `frame-resize-pixelwise' is nil (at least,
quartz-wm does so).  If user wants resize by mouse dragging to follow
the mouse strictly, then she or he can set `frame-resize-pixelwise' to
t.

Also, unlike the NS port, the Mac port does not "white out" the screen
during mouse dragging but updates the contents, and it is a bit heavy
operation.  Rounding during mouse dragging also acts as "coalescing"
screen updates.

(Actually, the way to implement this screen updating during mouse
 dragging on the Mac port interferes with "window snapping" introduced
 in macOS 10.12, so it is disabled if running on that version.)

Rounding does not happen for the axis that is specified to be
maximized/full so that it does not leave spaces.  So, rounding happens
only for horizontal axis when the fullscreen frame parameter is set to
'fullheight if `frame-resize-pixelwise' is nil.

                                     YAMAMOTO Mitsuharu
                                address@hidden



reply via email to

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