emacs-devel
[Top][All Lists]
Advanced

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

Re: Add function to make frame topmost?


From: David De La Harpe Golden
Subject: Re: Add function to make frame topmost?
Date: Sun, 02 May 2010 02:17:34 +0100
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109)

Stefan Monnier wrote:
SM> An alternative is to use the poor-man's OO system already in place and
SM> just add a set_frame_topmost_hook to the terminal object.
Check src/termhooks.h where "struct terminal" is defined.
I'm wasn't sure why you say terminal rather than frame, though either
way it's a poor-man's OO system dealie.  Futzing with _NET_WM_STATE_ABOVE is
closely analogous to futzing with _NET_WM_STATE_STICKY from within emacs, so
adding it to frame_parm_table makes most sense to me.

frame_parm_table does not seem relevant since it doesn't dispatch on the
display type.

Sorry, frame_parm_table itself just lists possible frame parameters.
xfns.c, w32fns.c and nsfns.m then setup their [x|w32|ns]_frame_parm_handlers supplying their implementations for some or all of the frame parameters, used as the value of the
FRAME_RIF(frame)->frame_parm_handlers

Anyhow, it's how other several similar parameters are already handled,
the patch was little more than a copy-paste of existing frame parameters.








reply via email to

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