[MPlayer-cvslog] r36386 - trunk/gui/wm/ws.c
ib
subversion at mplayerhq.hu
Thu Aug 1 19:25:58 CEST 2013
Author: ib
Date: Thu Aug 1 19:25:58 2013
New Revision: 36386
Log:
Remove XFlush() and XSync() calls.
They aren't necessary.
We can rely on the implicit flushes of the output buffer.
Modified:
trunk/gui/wm/ws.c
Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c Thu Aug 1 19:22:37 2013 (r36385)
+++ trunk/gui/wm/ws.c Thu Aug 1 19:25:58 2013 (r36386)
@@ -598,9 +598,6 @@ buttonreleased:
wsXDNDProcessSelection(wsWindowList[l], event);
break;
}
-
- XFlush(wsDisplay);
- XSync(wsDisplay, False);
}
/**
@@ -897,9 +894,6 @@ void wsWindowCreate(wsWindow *win, int x
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 @@ void wsWindowFullscreen(wsWindow *win)
wsWindowLayer(wsDisplay, win->WindowID, vo_ontop);
wsWindowRaiseTop(wsDisplay, win->WindowID);
- XFlush(wsDisplay);
}
/**
@@ -1289,7 +1282,6 @@ void wsWindowRedraw(wsWindow *win)
if (win->DrawHandler) {
win->State = wsWindowExpose;
win->DrawHandler();
- XFlush(wsDisplay);
}
}
@@ -1331,7 +1323,6 @@ void wsImageCreate(wsWindow *win, int w,
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
More information about the MPlayer-cvslog
mailing list