Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        ewins.c windowmatch.c 


Log Message:
Add window op to enable/disable button grabs per client window.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ewins.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -3 -r1.34 -r1.35
--- ewins.c     24 Mar 2005 23:38:08 -0000      1.34
+++ ewins.c     31 Mar 2005 19:22:40 -0000      1.35
@@ -124,7 +124,6 @@
    EChangeWindowAttributes(EoGetWin(ewin), CWEventMask | CWDontPropagate, 
&att);
    ewin->client.win = win;
    FocusEwinSetGrabs(ewin);
-   GrabButtonGrabs(ewin);
 
    EobjListStackAdd(&ewin->o, 0);
    EobjListFocusAdd(&ewin->o, 0);
@@ -522,6 +521,7 @@
    ICCCM_GetGeoms(ewin, 0);
    HintsGetWindowHints(ewin);
    SessionGetInfo(ewin, 0);
+
 #if 0                          /* Do we want this? */
    MatchEwinToSM(ewin);
 #endif
@@ -529,7 +529,10 @@
    SnapshotEwinMatch(ewin);    /* Saved settings */
    if (Mode.wm.startup)
       EHintsGetInfo(ewin);     /* E restart hints */
+
    EoSetOpacity(ewin, ewin->ewmh.opacity);
+   if (!ewin->no_button_grabs)
+      GrabButtonGrabs(ewin);
 
    ICCCM_MatchSize(ewin);
 
@@ -578,7 +581,9 @@
 
    WindowMatchEwinOps(ewin);   /* Window matches */
    SnapshotEwinMatch(ewin);    /* Saved settings */
+
    EoSetOpacity(ewin, ewin->ewmh.opacity);
+   GrabButtonGrabs(ewin);
 
    ICCCM_MatchSize(ewin);
 
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/windowmatch.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -3 -r1.29 -r1.30
--- windowmatch.c       24 Mar 2005 23:38:12 -0000      1.29
+++ windowmatch.c       31 Mar 2005 19:22:40 -0000      1.30
@@ -693,6 +693,10 @@
        WINOP_GET_BOOL(ewin->neverfocus, args);
        break;
 
+     case EWIN_OP_NO_BUTTON_GRABS:
+       WINOP_GET_BOOL(ewin->no_button_grabs, args);
+       break;
+
      case EWIN_OP_FULLSCREEN:
        WINOP_GET_BOOL(ewin->st.fullscreen, args);
        break;




-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to