Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        E.h events.c ewin-ops.c mod-misc.c settings.c 


Log Message:
Add checkbox in move/resize dialog to enable/disable use of 
_NET_WM_SYNC_REQUEST.

===================================================================
RCS file: /cvs/e/e16/e/src/E.h,v
retrieving revision 1.568
retrieving revision 1.569
diff -u -3 -r1.568 -r1.569
--- E.h 18 Oct 2006 18:19:14 -0000      1.568
+++ E.h 29 Oct 2006 15:21:14 -0000      1.569
@@ -323,6 +323,7 @@
       int                 mode_resize;
       int                 mode_info;
       char                update_while_moving;
+      char                enable_sync_request;
    } movres;
    struct
    {
@@ -410,7 +411,6 @@
       char                argb_internal_clients;
       char                argb_clients;
       char                argb_clients_inherit_attr;
-      char                use_sync;
       int                 mask_alpha_threshold;
    } testing;
 
===================================================================
RCS file: /cvs/e/e16/e/src/events.c,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -3 -r1.126 -r1.127
--- events.c    23 Aug 2006 19:06:21 -0000      1.126
+++ events.c    29 Oct 2006 15:21:15 -0000      1.127
@@ -108,7 +108,7 @@
    XSyncFreeSystemCounterList(xssc);
 
    if (Mode.display.server_time == None)
-      Conf.testing.use_sync = 0;
+      Conf.movres.enable_sync_request = 0;
 }
 #endif
 
===================================================================
RCS file: /cvs/e/e16/e/src/ewin-ops.c,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -3 -r1.103 -r1.104
--- ewin-ops.c  28 Oct 2006 14:53:16 -0000      1.103
+++ ewin-ops.c  29 Oct 2006 15:21:15 -0000      1.104
@@ -466,7 +466,7 @@
      {
        configure = 1;
 #if USE_XSYNC
-       if (Conf.testing.use_sync)
+       if (Conf.movres.enable_sync_request)
           EwinSyncRequestSend(ewin);
 #endif
      }
@@ -514,7 +514,7 @@
        if (!resize)
           ICCCM_Configure(ewin);
 #if USE_XSYNC
-       if (Conf.testing.use_sync)
+       if (Conf.movres.enable_sync_request)
           EwinSyncRequestWait(ewin);
 #endif
      }
===================================================================
RCS file: /cvs/e/e16/e/src/mod-misc.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -3 -r1.46 -r1.47
--- mod-misc.c  8 Oct 2006 14:54:20 -0000       1.46
+++ mod-misc.c  29 Oct 2006 15:21:15 -0000      1.47
@@ -125,6 +125,7 @@
    CFG_ITEM_INT(Conf, movres.mode_resize, 2),
    CFG_ITEM_INT(Conf, movres.mode_info, 1),
    CFG_ITEM_BOOL(Conf, movres.update_while_moving, 0),
+   CFG_ITEM_BOOL(Conf, movres.enable_sync_request, 0),
 
    CFG_ITEM_INT(Conf, opacity.menus, 85),
    CFG_ITEM_INT(Conf, opacity.movres, 60),
@@ -161,7 +162,6 @@
    CFG_ITEM_BOOL(Conf, testing.argb_internal_clients, 0),
    CFG_ITEM_BOOL(Conf, testing.argb_clients, 0),
    CFG_ITEM_BOOL(Conf, testing.argb_clients_inherit_attr, 0),
-   CFG_ITEM_BOOL(Conf, testing.use_sync, 0),
    CFG_ITEM_INT(Conf, testing.mask_alpha_threshold, 8),
 
    CFG_ITEM_BOOL(Conf, autosave, 1),
===================================================================
RCS file: /cvs/e/e16/e/src/settings.c,v
retrieving revision 1.160
retrieving revision 1.161
diff -u -3 -r1.160 -r1.161
--- settings.c  12 Sep 2006 15:40:48 -0000      1.160
+++ settings.c  29 Oct 2006 15:21:15 -0000      1.161
@@ -29,6 +29,7 @@
 static int          tmp_resize;
 static int          tmp_geominfo;
 static char         tmp_update_while_moving;
+static char         tmp_sync_request;
 
 static void
 CB_ConfigureMoveResize(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
@@ -39,6 +40,7 @@
        Conf.movres.mode_resize = tmp_resize;
        Conf.movres.mode_info = tmp_geominfo;
        Conf.movres.update_while_moving = tmp_update_while_moving;
+       Conf.movres.enable_sync_request = tmp_sync_request;
      }
    autosave();
 }
@@ -52,6 +54,7 @@
    tmp_resize = Conf.movres.mode_resize;
    tmp_geominfo = Conf.movres.mode_info;
    tmp_update_while_moving = Conf.movres.update_while_moving;
+   tmp_sync_request = Conf.movres.enable_sync_request;
 
    DialogItemTableSetOptions(table, 2, 0, 0, 0);
 
@@ -159,6 +162,11 @@
    DialogItemSetColSpan(di, 2);
    DialogItemSetText(di, _("Update window while moving"));
    DialogItemCheckButtonSetPtr(di, &tmp_update_while_moving);
+
+   di = DialogAddItem(table, DITEM_CHECKBUTTON);
+   DialogItemSetColSpan(di, 2);
+   DialogItemSetText(di, _("Synchronize move/resize with application"));
+   DialogItemCheckButtonSetPtr(di, &tmp_sync_request);
 }
 
 const DialogDef     DlgMoveResize = {



-------------------------------------------------------------------------
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
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to