Skip to content

Commit 6658c29

Browse files
FriwiDevmagreenblatt
authored andcommitted
Linux: Fix display sync errors on resize/reparent (fixes issue chromiumembedded#417)
1 parent 7000daa commit 6658c29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

native/util_linux.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ void X_XMoveResizeWindow(unsigned long browserHandle,
2323
unsigned int height) {
2424
::Display* xdisplay = (::Display*)TempWindow::GetDisplay();
2525
XMoveResizeWindow(xdisplay, browserHandle, 0, 0, width, height);
26+
XFlush(xdisplay);
2627
}
2728

2829
void X_XReparentWindow(unsigned long browserHandle,
2930
unsigned long parentDrawable) {
3031
::Display* xdisplay = (::Display*)TempWindow::GetDisplay();
3132
XReparentWindow(xdisplay, browserHandle, parentDrawable, 0, 0);
33+
XFlush(xdisplay);
3234
}
3335

3436
void X_XSync(bool discard) {

0 commit comments

Comments
 (0)