XEmbed Systray Support

Alexandre Julliard julliard at winehq.org
Wed Sep 21 05:07:30 CDT 2005


Robert Shearman <rob at codeweavers.com> writes:

> +        ev.xclient.type = ClientMessage;
> +        ev.xclient.window = systray_window;
> +        ev.xclient.message_type = x11drv_atom(_NET_SYSTEM_TRAY_OPCODE);
> +        ev.xclient.format = 32;
> +        ev.xclient.data.l[0] = CurrentTime;
> +        ev.xclient.data.l[1] = SYSTEM_TRAY_REQUEST_DOCK;
> +        ev.xclient.data.l[2] = data->whole_window;
> +        XSendEvent( display, systray_window, False, NoEventMask, &ev );
> +        XSync( display, False );

You need to get the tsx11 lock when calling X functions. Also what's
the reason for having an XSync here?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list