Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_border.c e_config.c e_config.h e_ipc_handlers.h 
        e_ipc_handlers_list.h 


Log Message:
Make modal windows optional. Is it a good config name?

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.392
retrieving revision 1.393
diff -u -3 -r1.392 -r1.393
--- e_border.c  5 Sep 2005 15:24:07 -0000       1.392
+++ e_border.c  5 Sep 2005 21:46:56 -0000       1.393
@@ -4757,7 +4757,7 @@
               {
                  bd_parent->transients = 
evas_list_append(bd_parent->transients, bd);
                  bd->parent = bd_parent;
-                 if (bd->client.netwm.state.modal)
+                 if ((e_config->modal_windows) && 
(bd->client.netwm.state.modal))
                    bd->parent->modal = bd;
               }
          }
@@ -4771,7 +4771,7 @@
               {
                  bd_leader->group = evas_list_append(bd_leader->group, bd);
                  bd->leader = bd_leader;
-                 if (bd->client.netwm.state.modal)
+                 if ((e_config->modal_windows) && 
(bd->client.netwm.state.modal))
                    bd->leader->modal = bd;
               }
          }
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_config.c,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -3 -r1.96 -r1.97
--- e_config.c  5 Sep 2005 15:24:07 -0000       1.96
+++ e_config.c  5 Sep 2005 21:46:56 -0000       1.97
@@ -308,6 +308,7 @@
    E_CONFIG_VAL(D, T, transient.layer, INT); /**/
    E_CONFIG_VAL(D, T, transient.desktop, INT); /**/
    E_CONFIG_VAL(D, T, transient.iconify, INT); /**/
+   E_CONFIG_VAL(D, T, modal_windows, INT); /**/
 
    e_config = e_config_domain_load("e", _e_config_edd);
    if (e_config)
@@ -423,6 +424,7 @@
        e_config->transient.layer = 1;
        e_config->transient.desktop = 1;
        e_config->transient.iconify = 1;
+       e_config->modal_windows = 1;
        
          {
             E_Config_Module *em;
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_config.h,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -3 -r1.49 -r1.50
--- e_config.h  2 Sep 2005 07:38:40 -0000       1.49
+++ e_config.h  5 Sep 2005 21:46:56 -0000       1.50
@@ -154,6 +154,7 @@
        int    desktop;
        int    iconify;
    } transient;
+   int         modal_windows;
 };
 
 struct _E_Config_Module
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc_handlers.h,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -3 -r1.69 -r1.70
--- e_ipc_handlers.h    5 Sep 2005 15:24:07 -0000       1.69
+++ e_ipc_handlers.h    5 Sep 2005 21:46:56 -0000       1.70
@@ -4976,3 +4976,42 @@
    END_INT;
 #endif
 #undef HDL
+
+/****************************************************************************/
+#define HDL E_IPC_OP_MODAL_WINDOWS_SET
+#if (TYPE == E_REMOTE_OPTIONS)
+   OP("-modal-windows-set", 1, "Set if enlightenment should honour modal 
windows", 0, HDL)
+#elif (TYPE == E_REMOTE_OUT)
+   REQ_INT(atoi(params[0]), HDL);
+#elif (TYPE == E_WM_IN)
+   START_INT(val, HDL);
+   e_config->modal_windows = val;
+   SAVE;
+   END_INT;
+#elif (TYPE == E_REMOTE_IN)
+#endif
+#undef HDL
+
+/****************************************************************************/
+#define HDL E_IPC_OP_MODAL_WINDOWS_GET
+#if (TYPE == E_REMOTE_OPTIONS)
+   OP("-modal-windows-get", 0, "Get if enlightenment should honour modal 
windows", 1, HDL)
+#elif (TYPE == E_REMOTE_OUT)
+   REQ_NULL(HDL);
+#elif (TYPE == E_WM_IN)
+   SEND_INT(e_config->modal_windows, E_IPC_OP_MODAL_WINDOWS_GET_REPLY, HDL);
+#elif (TYPE == E_REMOTE_IN)
+#endif
+#undef HDL
+
+/****************************************************************************/
+#define HDL E_IPC_OP_MODAL_WINDOWS_GET_REPLY
+#if (TYPE == E_REMOTE_OPTIONS)
+#elif (TYPE == E_REMOTE_OUT)
+#elif (TYPE == E_WM_IN)
+#elif (TYPE == E_REMOTE_IN)
+   START_INT(val, HDL);
+   printf("REPLY: %d\n", val);
+   END_INT;
+#endif
+#undef HDL
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc_handlers_list.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- e_ipc_handlers_list.h       2 Sep 2005 07:38:40 -0000       1.18
+++ e_ipc_handlers_list.h       5 Sep 2005 21:46:56 -0000       1.19
@@ -253,3 +253,7 @@
 #define E_IPC_OP_TRANSIENT_ICONIFY_SET 252
 #define E_IPC_OP_TRANSIENT_ICONIFY_GET 253
 #define E_IPC_OP_TRANSIENT_ICONIFY_GET_REPLY 254
+
+#define E_IPC_OP_MODAL_WINDOWS_SET 255
+#define E_IPC_OP_MODAL_WINDOWS_GET 256
+#define E_IPC_OP_MODAL_WINDOWS_GET_REPLY 257




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to