Checking success/failure of window resizes



Hi all,

In gtk+/gdk/gdkwindow.c (gdk_window_resize) there's a call to
XResizeWindow() which works mostly - but there have been a few
bugs reported in unusual circumstances in the Gimp which get
traced to this function.

There are hacks to get around this, but it would certainly be
nice if we could verify whether a call to XResizeWindow were
successful or not. 

Is there any way to check the status of a call to
gdk_window_resize, or (even better) to XResizeWindow? If there is
a way to do the former, could someone let me know how so that we
can get nice sane patches? If it's the latter, could someone tell
me (out of interest) how, and could we get this check added to
the gdk sources? 

I'm guessing that we could check for a BadWindow error, if it's
produced in a failed resize - but I don't know XLib that well...
so I could be way off.

Cheers,
Dave.

-- 
  .------------------------------.
 /          David Neary,          \
|     E-Mail dneary eircom net     | 
 \     Phone +353-1-872-0654      /
  `------------------------------'




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