문제

I want to resize some window with

XResizeWindow(display, xid, width, height) 

which was created by another application and waits until it is really resized.

I tried the following:

XSync(display, 0) 

but it does not work.

Any suggestions?

도움이 되었습니까?

해결책

XSync just ensures the request has been delivered to the Xserver, and doesn't wait for the other application and/or window manager to deal with the request.

Have you tried registering for ConfigureNotify events on that window?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top