From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>,
Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Add function to make frame topmost?
Date: Sat, 01 May 2010 10:00:50 +0200 [thread overview]
Message-ID: <4BDBDFB2.5010801@swipnet.se> (raw)
In-Reply-To: <l2ye01d8a51004301513ufbf652cfo76c9fd04c7ee839f@mail.gmail.com>
Lennart Borgman skrev 2010-05-01 00.13:
> On Sat, May 1, 2010 at 12:02 AM, Jan Djärv<jan.h.d@swipnet.se> wrote:
>>
>>
>> 30 apr 2010 kl. 22.54 skrev Stefan Monnier<monnier@IRO.UMontreal.CA>:
>>
>>>
>>> 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).
>>
>> You can tell the window manager that you would like to be topmost, but the
>> window manager is free to ignore your request. You cant know for sure what
>> will happen.
>
>
> Thanks Jan. But how are tooltip frames handled on X by Emacs then?
They have the flag override redirect set, that tells the window manager not to
touch them at all. This means that if they want to get mouse and keyboard
events they have to grab the mouse and keyboard, as menus for example do.
If you have several override-redirect windows, the X stacking order determines
who is topmost (XRaiseWindow and XLowerWindow functions). Usually a override
redirect window becomes topmost when it is created.
Windows that aren't override redirect windows are at the mercy of the window
manager, it can choose to ignore XRaiseWindow/XLowerWindow done by windows.
>
> On w32 you can say that a window (on a level corresponding to Emacs
> frame) should be topmost. This is ortogonal to activating the app. And
> the topmost property is per window, not per app.
>
> Is this the same (sub)structure as on X?
Stacking order is per window. In the extended window manager specification,
there is a section on stacking, and what hints a window can have. There is
also an "Urgency" hint to indicate that this window is somehow urgent.
Exactly what that means is up to the window manager. From EWMH:
"Stacking order
To obtain good interoperability between different Desktop Environments, the
following layered stacking order is recommended, from the bottom:
* windows of type _NET_WM_TYPE_DESKTOP
* windows having state _NET_WM_STATE_BELOW
* windows not belonging in any other layer
* windows of type _NET_WM_TYPE_DOCK (unless they have state
_NET_WM_TYPE_BELOW) and windows having state _NET_WM_STATE_ABOVE
* focused windows having state _NET_WM_STATE_FULLSCREEN
Windows that are transient for another window should be kept above this window.
The window manager may choose to put some windows in different stacking
positions, for example to allow the user to bring currently a active window to
the top and return it back when the window looses focus. "
Jan D.
next prev parent reply other threads:[~2010-05-01 8:00 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-30 1:48 Add function to make frame topmost? Lennart Borgman
2010-04-30 13:06 ` Stefan Monnier
2010-04-30 13:26 ` Lennart Borgman
2010-04-30 20:54 ` Stefan Monnier
2010-04-30 22:02 ` Jan Djärv
2010-04-30 22:13 ` Lennart Borgman
2010-05-01 8:00 ` Jan Djärv [this message]
2010-04-30 22:32 ` David De La Harpe Golden
2010-04-30 23:22 ` Lennart Borgman
2010-05-01 1:48 ` David De La Harpe Golden
2010-05-01 2:06 ` Lennart Borgman
2010-05-01 13:05 ` Stefan Monnier
2010-05-01 18:03 ` David De La Harpe Golden
2010-05-01 20:20 ` Drew Adams
2010-05-01 22:02 ` David De La Harpe Golden
2010-05-01 22:09 ` David De La Harpe Golden
2010-05-02 14:07 ` Drew Adams
2010-05-02 15:27 ` David De La Harpe Golden
2010-05-02 15:58 ` stack-order (z-order) parameter for frames [was: Add function to make frame topmost?] Drew Adams
2010-05-01 22:44 ` Add function to make frame topmost? Lennart Borgman
2010-05-02 1:18 ` David De La Harpe Golden
2010-05-02 7:47 ` Jan Djärv
2010-05-02 12:52 ` David De La Harpe Golden
2010-05-02 7:27 ` Jan Djärv
2010-05-02 12:27 ` Stephen J. Turnbull
2010-05-02 12:53 ` Jan Djärv
2010-05-02 13:44 ` David De La Harpe Golden
2010-05-03 3:16 ` Stephen J. Turnbull
2010-05-02 14:43 ` David De La Harpe Golden
2010-05-02 14:48 ` Lennart Borgman
2010-05-02 14:55 ` David De La Harpe Golden
2010-05-02 16:48 ` David De La Harpe Golden
2010-05-02 18:58 ` Jan Djärv
2010-05-02 21:32 ` Desktop bubble notifications [Was: Re: Add function to make frame topmost?] David De La Harpe Golden
2010-05-03 0:19 ` Lennart Borgman
2010-05-03 2:29 ` David De La Harpe Golden
2010-05-03 19:46 ` Stephen Eilert
2010-05-03 19:58 ` Lennart Borgman
2010-05-04 11:48 ` Desktop bubble notifications Bastien
2010-05-02 19:17 ` Add function to make frame topmost? chad
2010-05-03 3:33 ` Stephen J. Turnbull
2010-05-02 14:01 ` Drew Adams
2010-05-02 15:06 ` Lennart Borgman
2010-05-03 3:43 ` Stephen J. Turnbull
2010-05-03 9:59 ` Lennart Borgman
2010-05-03 17:21 ` Stefan Monnier
2010-05-03 19:50 ` Lennart Borgman
2010-05-03 21:31 ` David De La Harpe Golden
2010-05-02 0:36 ` Stefan Monnier
2010-05-02 1:17 ` David De La Harpe Golden
2010-05-01 2:10 ` David De La Harpe Golden
2010-05-01 2:32 ` Lennart Borgman
2010-05-01 3:49 ` Lennart Borgman
2010-05-03 16:39 ` Tom Tromey
2010-05-03 19:33 ` systray support [was: Re: Add function to make frame topmost?] Dan Nicolaescu
2010-05-01 3:19 ` Add function to make frame topmost? David De La Harpe Golden
2010-05-01 8:28 ` Jan Djärv
2010-05-01 19:46 ` David De La Harpe Golden
2010-05-01 22:46 ` Lennart Borgman
2010-05-01 5:25 ` Eli Zaretskii
2010-05-03 12:47 ` Lennart Borgman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BDBDFB2.5010801@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=emacs-devel@gnu.org \
--cc=lennart.borgman@gmail.com \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.