How can I get a event when resize a window by drag its frame?

view story

http://ubuntuforums.org – I used Xlib for my program. and I used these masks below : ::XSelectInput( (Display*) mDisplay, (Window) mWindow, ExposureMask | ButtonMotionMask | ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | FocusChangeMask | KeyPressMask | KeyReleaseMask | ResizeRedirectMask | StructureNotifyMask ); And I can not get a ConfigureNotify or ResizeRequest when I drag the frame to resize the window. (Hardware)