Mercurial > mplayer.hg
changeset 36290:6f543c795c4b
Remove XFlush() and XSync() calls.
They aren't necessary.
We can rely on the implicit flushes of the output buffer.
author | ib |
---|---|
date | Thu, 01 Aug 2013 17:25:58 +0000 |
parents | f3cad93ab011 |
children | b2edfe1a11a6 |
files | gui/wm/ws.c |
diffstat | 1 files changed, 0 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/wm/ws.c Thu Aug 01 17:22:37 2013 +0000 +++ b/gui/wm/ws.c Thu Aug 01 17:25:58 2013 +0000 @@ -598,9 +598,6 @@ wsXDNDProcessSelection(wsWindowList[l], event); break; } - - XFlush(wsDisplay); - XSync(wsDisplay, False); } /** @@ -897,9 +894,6 @@ wsImageCreate(win, win->Width, win->Height); /* End of creating -------------------------------------------------------------------------- */ - XFlush(wsDisplay); - XSync(wsDisplay, False); - win->DrawHandler = NULL; win->MouseHandler = NULL; win->KeyHandler = NULL; @@ -1219,7 +1213,6 @@ wsWindowLayer(wsDisplay, win->WindowID, vo_ontop); wsWindowRaiseTop(wsDisplay, win->WindowID); - XFlush(wsDisplay); } /** @@ -1289,7 +1282,6 @@ if (win->DrawHandler) { win->State = wsWindowExpose; win->DrawHandler(); - XFlush(wsDisplay); } } @@ -1331,7 +1323,6 @@ win->xImage->data = win->Shminfo.shmaddr; win->Shminfo.readOnly = False; XShmAttach(wsDisplay, &win->Shminfo); - XSync(wsDisplay, False); shmctl(win->Shminfo.shmid, IPC_RMID, 0); } else #endif