emacs-devel
[Top][All Lists]
Advanced

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

Re: raise-frame doesn't work in Fedora Core 4


From: Stefan Monnier
Subject: Re: raise-frame doesn't work in Fedora Core 4
Date: Tue, 31 Oct 2006 10:37:55 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux)

> +     /* See _NET_ACTIVE_WINDOW in
> +        http://freedesktop.org/wiki/Standards_2fwm_2dspec */
> +     XEvent event;
> + 
> +     event.xclient.type = ClientMessage;
> +     event.xclient.serial = 0;
> +     event.xclient.send_event = True;
> + 
> +     event.xclient.message_type = XInternAtom(FRAME_X_DISPLAY (f), 
> +                                              "_NET_ACTIVE_WINDOW", 
> +                                              False);
> +     event.xclient.window = FRAME_OUTER_WINDOW (f);
> +     event.xclient.format = 32;
> +     event.xclient.data.l[0] = 1; /* source indication */
> +     event.xclient.data.l[1] = 0; /* timestamp */
> +     event.xclient.data.l[2] = 0; /* requestor's currently active window */
> +     event.xclient.data.l[3] = event.xclient.data.l[4] = 0;
> + 
> +     XSendEvent(FRAME_X_DISPLAY (f), 
> +                DefaultRootWindow (FRAME_X_DISPLAY (f)), 
> +                False, 
> +                SubstructureRedirectMask | SubstructureNotifyMask,
> +                &event);
> +       }
> + 
>         XRaiseWindow (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f));
>         XFlush (FRAME_X_DISPLAY (f));
>         UNBLOCK_INPUT;

Is there some documented rationale for this wm-spec thingy?
I mean, why on earth should the window-manager need more than "XRaiseWindow"
to figure out that the window should be brought on top?


        Stefan




reply via email to

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