XEMBED System tray support

Alexandre Julliard julliard at winehq.org
Mon Jun 30 21:35:34 CDT 2003


Mike Hearn <mike at theoretic.com> writes:

> +  /* now set sync the X11 window rects to the win32 window rects,
> +     so the shell tray code can properly align the icon */
> +  
> +
> +  XTranslateCoordinates(display, data->whole_window, root_window,
> +			0, 0, &x, &y, &child);
> +  XGetWindowAttributes(display, data->whole_window, &attrs);
> +
> +  wine_tsx11_unlock();
> +
> +  r.left = x;    
> +  r.top = y;
> +  r.right = r.left + attrs.width;
> +  r.bottom = r.top + attrs.height;
> +
> +  WIN_SetRectangles(hwnd, &r, &r);

This completely bypasses the normal window size handling, I don't
think that's a good idea. Positions changes should be handled by the
standard ConfigureNotify processing.

-- 
Alexandre Julliard
julliard at winehq.com



More information about the wine-devel mailing list