Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
ewin-ops.c icccm.c
Log Message:
Add _NET_WM_SYNC_REQUEST support.
===================================================================
RCS file: /cvs/e/e16/e/src/ewin-ops.c,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -3 -r1.102 -r1.103
--- ewin-ops.c 7 Oct 2006 12:02:33 -0000 1.102
+++ ewin-ops.c 28 Oct 2006 14:53:16 -0000 1.103
@@ -298,7 +298,7 @@
{
static int call_depth = 0;
int dx, dy, sw, sh, xo, yo;
- char move, resize, reparent, raise, floating;
+ char move, resize, reparent, raise, floating, configure;
EWin **lst;
int i, num;
Desk *pdesk;
@@ -461,6 +461,16 @@
else
EoMoveResize(ewin, x, y, w, h);
+ configure = 0;
+ if (Mode.mode == MODE_NONE || resize || Conf.movres.update_while_moving)
+ {
+ configure = 1;
+#if USE_XSYNC
+ if (Conf.testing.use_sync)
+ EwinSyncRequestSend(ewin);
+#endif
+ }
+
if (flags & MRF_RESIZE)
{
if (!ewin->state.shaded)
@@ -490,6 +500,7 @@
if (resize && ewin->state.shaped)
ewin->update.shape = 1;
}
+
EwinPropagateShapes(ewin);
if (raise)
@@ -498,8 +509,15 @@
EwinRaise(ewin);
}
- if (Mode.mode == MODE_NONE || Conf.movres.update_while_moving)
- ICCCM_Configure(ewin);
+ if (configure)
+ {
+ if (!resize)
+ ICCCM_Configure(ewin);
+#if USE_XSYNC
+ if (Conf.testing.use_sync)
+ EwinSyncRequestWait(ewin);
+#endif
+ }
if (flags & (MRF_DESK | MRF_MOVE | MRF_FLOAT | MRF_UNFLOAT))
{
===================================================================
RCS file: /cvs/e/e16/e/src/icccm.c,v
retrieving revision 1.129
retrieving revision 1.130
diff -u -3 -r1.129 -r1.130
--- icccm.c 23 Aug 2006 19:06:21 -0000 1.129
+++ icccm.c 28 Oct 2006 14:53:16 -0000 1.130
@@ -777,8 +777,7 @@
{
long long count;
- if (!Conf.testing.use_sync || !ewin->ewmh.sync_request_enable ||
- EServerIsGrabbed())
+ if (!ewin->ewmh.sync_request_enable || EServerIsGrabbed())
return 0;
count = ++ewin->ewmh.sync_request_count;
@@ -801,8 +800,7 @@
XSyncWaitCondition xswc[2];
double t;
- if (!Conf.testing.use_sync || !ewin->ewmh.sync_request_enable ||
- EServerIsGrabbed())
+ if (!ewin->ewmh.sync_request_enable || EServerIsGrabbed())
return;
xswc[0].trigger.counter = ewin->ewmh.sync_request_counter;
@@ -815,7 +813,7 @@
xswc[1].trigger.counter = Mode.display.server_time;
xswc[1].trigger.value_type = XSyncRelative;
- XSyncIntsToValue(&xswc[1].trigger.wait_value, 1000, 0); /* 1 sec */
+ XSyncIntsToValue(&xswc[1].trigger.wait_value, 200, 0); /* 200 ms */
xswc[1].trigger.test_type = XSyncPositiveComparison;
XSyncIntsToValue(&xswc[1].event_threshold, 0, 0);
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs