Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
E.h ewin-ops.c ewin-ops.h ipc.c
Log Message:
Add window op to enable/disable button grabs per client window.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/E.h,v
retrieving revision 1.401
retrieving revision 1.402
diff -u -3 -r1.401 -r1.402
--- E.h 31 Mar 2005 16:02:53 -0000 1.401
+++ E.h 31 Mar 2005 19:04:29 -0000 1.402
@@ -723,6 +723,7 @@
char skipwinlist;
char focusclick;
char neverfocus;
+ char no_button_grabs;
char no_actions;
void *data; /* Data hook for internal windows */
int area_x;
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ewin-ops.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- ewin-ops.c 29 Mar 2005 22:49:45 -0000 1.20
+++ ewin-ops.c 31 Mar 2005 19:04:35 -0000 1.21
@@ -39,6 +39,7 @@
{"never_use_area", 0, 1, 1, EWIN_OP_NEVER_USE_AREA},
{"focusclick", 0, 1, 1, EWIN_OP_FOCUS_CLICK},
{"neverfocus", 0, 1, 1, EWIN_OP_FOCUS_NEVER},
+ {"no_button_grabs", 0, 1, 1, EWIN_OP_NO_BUTTON_GRABS},
{"title", 2, 1, 1, EWIN_OP_TITLE},
{"toggle_width", 0, 1, 0, EWIN_OP_MAX_WIDTH},
{"tw", 2, 1, 0, EWIN_OP_MAX_WIDTH},
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ewin-ops.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewin-ops.h 13 Feb 2005 22:54:17 -0000 1.1
+++ ewin-ops.h 31 Mar 2005 19:04:35 -0000 1.2
@@ -37,6 +37,7 @@
EWIN_OP_NEVER_USE_AREA,
EWIN_OP_FOCUS_CLICK,
EWIN_OP_FOCUS_NEVER,
+ EWIN_OP_NO_BUTTON_GRABS,
EWIN_OP_TITLE,
EWIN_OP_MAX_WIDTH,
EWIN_OP_MAX_HEIGHT,
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ipc.c,v
retrieving revision 1.211
retrieving revision 1.212
diff -u -3 -r1.211 -r1.212
--- ipc.c 24 Mar 2005 23:38:09 -0000 1.211
+++ ipc.c 31 Mar 2005 19:04:35 -0000 1.212
@@ -462,31 +462,41 @@
#endif
case EWIN_OP_SHADE:
- if (SetEwinBoolean("window shaded", &ewin->shaded, param1, 0))
+ if (SetEwinBoolean("shaded", &ewin->shaded, param1, 0))
EwinOpShade(ewin, !ewin->shaded);
break;
case EWIN_OP_STICK:
on = EoIsSticky(ewin);
- if (SetEwinBoolean("window sticky", &on, param1, 0))
+ if (SetEwinBoolean("sticky", &on, param1, 0))
EwinOpStick(ewin, !on);
break;
case EWIN_OP_FIXED_POS:
- SetEwinBoolean("window fixedpos", &ewin->fixedpos, param1, 1);
+ SetEwinBoolean("fixedpos", &ewin->fixedpos, param1, 1);
break;
case EWIN_OP_NEVER_USE_AREA:
- SetEwinBoolean("window never_use_area", &ewin->never_use_area, param1,
- 1);
+ SetEwinBoolean("never_use_area", &ewin->never_use_area, param1, 1);
break;
case EWIN_OP_FOCUS_CLICK:
- SetEwinBoolean("window focusclick", &ewin->focusclick, param1, 1);
+ SetEwinBoolean("focusclick", &ewin->focusclick, param1, 1);
break;
case EWIN_OP_FOCUS_NEVER:
- SetEwinBoolean("window neverfocus", &ewin->neverfocus, param1, 1);
+ SetEwinBoolean("neverfocus", &ewin->neverfocus, param1, 1);
+ break;
+
+ case EWIN_OP_NO_BUTTON_GRABS:
+ if (SetEwinBoolean
+ ("no_button_grabs", &ewin->no_button_grabs, param1, 1))
+ {
+ if (ewin->no_button_grabs)
+ UnGrabButtonGrabs(ewin);
+ else
+ GrabButtonGrabs(ewin);
+ }
break;
case EWIN_OP_TITLE:
@@ -498,7 +508,7 @@
}
if (!strcmp(p, "?"))
{
- IpcPrintf("window title: %s", ewin->icccm.wm_name);
+ IpcPrintf("title: %s", ewin->icccm.wm_name);
goto done;
}
_EFREE(ewin->icccm.wm_name);
@@ -1361,6 +1371,7 @@
" win_op <windowid> <fixedpos/never_use_area>\n"
" win_op <windowid> <focus/focusclick/neverfocus>\n"
" win_op <windowid> <fullscreen/iconify/shade/stick>\n"
+ " win_op <windowid> no_button_grabs\n"
" win_op <windowid> <raise/lower>\n"
" win_op <windowid> skiplists\n"
" win_op <windowid> snap <what>\n"
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs