[Top][All Lists]

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

Re: Add function to make frame topmost?

From: Stefan Monnier
Subject: Re: Add function to make frame topmost?
Date: Fri, 30 Apr 2010 16:54:36 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>   (defun set-frame-topmost (frame top activate)
>     (cond
>      ((eq (display-type) 'x-windows) (x-set-frame-topmost frame top activate))
>      ((eq (display-type) 'w32) (w32-set-frame-topmost frame top activate))))

> is needed. The function `display-type' does not exist yet of course.

An alternative is to use the poor-man's OO system already in place and
just add a set_frame_topmost_hook to the terminal object.

>> Finally, I don't know what means "topmost", so the docstring needs to
>> be improved.
> Yes, "topmost" is what is used for tooltip etc to make that frame
> window stay above other windows without having focus. On w32 (and I
> guess on x) this also works across applications, ie a topmost frame
> window stays above the active application.
> My usecase for something like this is reminders that pops up at a
> certain times. You may want to see them even if you are not in Emacs.
> And you may prefer to not get interrupted when you type so directly
> activating Emacs might not be a good thing.

I see, thanks.  I don't know if there's a word for such things under X11
(I guess we should ask the freedesktop guys).


reply via email to

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