<div dir="ltr"><div><i>> Well... Марк, are these guesses right?</i></div>Yes, that's right.<div><br></div><div>I was trying to make window resizing in my program just as smooth as in GTK programs.<div>So far I have this: <a href="https://github.com/MarkLagodych/xcb-opengl-simple-program">https://github.com/MarkLagodych/xcb-opengl-simple-program</a></div><div>(based on Qt4 source code: <a href="https://dreamswork.github.io/qt4/qxcbwindow_8cpp_source.html#l00563">https://dreamswork.github.io/qt4/qxcbwindow_8cpp_source.html#l00563</a>)</div><div>My program uses OpenGL with GLX (sorry, forgot to mention that).</div><div>I've been playing with my code for a while and it looks like resizing is smooth now, however I'm still not sure whether the code is correct.</div><div>Could you tell me, please, if I'm handling the _NET_WM_SYNC_REQUEST and drawing correctly?</div><div>Is the order of updating the synchronization counter and painting the window right?</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пн, 6 июн. 2022 г. в 12:44, Uli Schlachter <<a href="mailto:psychon@znc.in">psychon@znc.in</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Am 06.06.22 um 11:20 schrieb Diego Cortez:<br>
> Most likely: <a href="https://xcb.freedesktop.org/manual/group__XCB__Sync__API.html" rel="noreferrer" target="_blank">https://xcb.freedesktop.org/manual/group__XCB__Sync__API.html</a><br>
<br>
yeah, well, that's the API docs for the Sync extension. Its protocol<br>
reference can be found here:<br>
<br>
<a href="https://www.x.org/releases/X11R7.7/doc/xextproto/sync.html" rel="noreferrer" target="_blank">https://www.x.org/releases/X11R7.7/doc/xextproto/sync.html</a><br>
<br>
However, that extension is implemented by the X11 server. Clients can<br>
use it to implement other specs. Actually... I only know one such thing:<br>
EWMH's _NET_WM_SYNC_REQUEST:<br>
<a href="https://specifications.freedesktop.org/wm-spec/wm-spec-latest.html#idm45446104324656" rel="noreferrer" target="_blank">https://specifications.freedesktop.org/wm-spec/wm-spec-latest.html#idm45446104324656</a><br>
<br>
Well... Марк, are these guesses right? What did you implement so far? Is<br>
this code online/public somewhere? What does "but did not succeed" mean<br>
exactly?<br>
<br>
Cheers,<br>
Uli<br>
-- <br>
I'd be delighted to offer any advice I can. When I have some, I'll let<br>
you know.<br>
</blockquote></div>