XResizeWindow() problem

Glynn Clements glynn at gclements.plus.com
Mon Aug 11 21:43:14 PDT 2008


Stian Skjelstad wrote:

> I have tried to search google, looked at other source-code trees etc,
> but I'm not getting very smart.
> 
> I want to be able to resize my window (works partly) and get the new
> XImage buffer (doesn't work as expected). If I resize the window down in
> size, it almost works.. WM borders get overdrawned, and resizing upwards
> makes the new XImage clip at the original sized window.
> 
> Please, give me some advise. The code attached is probably a bit strange
> parted up, but it is cut'n pasted from a bigger project of mine.

> 	xswa.event_mask=...|ResizeRedirectMask|...

You probably shouldn't be selecting ResizeRedirectMask, or bothering
to handle ResizeRequest events. Just listen for ConfigureNotify events
to tell you when the window size actually changes.

I have no idea if that's actually related to your problem, though.

-- 
Glynn Clements <glynn at gclements.plus.com>



More information about the xorg mailing list