Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
E.h borders.c
Log Message:
Adjust event masks, add some EWin debug.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/E.h,v
retrieving revision 1.250
retrieving revision 1.251
diff -u -3 -r1.250 -r1.251
--- E.h 21 Apr 2004 20:49:05 -0000 1.250
+++ E.h 23 Apr 2004 22:23:18 -0000 1.251
@@ -2007,11 +2007,13 @@
/* events.c */
#define ENABLE_DEBUG_EVENTS 1
#if ENABLE_DEBUG_EVENTS
-#define EDBUG_TYPE_FOCUS 128
-#define EDBUG_TYPE_COMPRESSION 129
-#define EDBUG_TYPE_STACKING 130
-#define EDBUG_TYPE_RAISELOWER 131
-#define EDBUG_TYPE_MOVERESIZE 132
+#define EDBUG_TYPE_EWINS 128
+#define EDBUG_TYPE_FOCUS 129
+#define EDBUG_TYPE_COMPRESSION 130
+#define EDBUG_TYPE_STACKING 131
+#define EDBUG_TYPE_RAISELOWER 132
+#define EDBUG_TYPE_MOVERESIZE 133
+#define EDBUG_TYPE_SESSION 134
int EventDebug(unsigned int type);
#else
#define EventDebug(type) 0
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/borders.c,v
retrieving revision 1.170
retrieving revision 1.171
diff -u -3 -r1.170 -r1.171
--- borders.c 21 Apr 2004 20:49:42 -0000 1.170
+++ borders.c 23 Apr 2004 22:23:37 -0000 1.171
@@ -30,7 +30,7 @@
#define EWIN_CONTAINER_EVENT_MASK \
(/* ButtonPressMask | ButtonReleaseMask | */ \
/* StructureNotifyMask | ResizeRedirectMask | */ \
- SubstructureNotifyMask | SubstructureRedirectMask)
+ /* SubstructureNotifyMask | */ SubstructureRedirectMask)
#define EWIN_BORDER_PART_EVENT_MASK \
(KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask | \
EnterWindowMask | LeaveWindowMask | PointerMotionMask | ExposureMask)
@@ -39,7 +39,7 @@
#define EWIN_CLIENT_EVENT_MASK \
(EnterWindowMask | LeaveWindowMask | FocusChangeMask | \
- /* StructureNotifyMask | */ ResizeRedirectMask | \
+ StructureNotifyMask | ResizeRedirectMask | \
PropertyChangeMask | ColormapChangeMask)
static void EwinSetBorderInit(EWin * ewin);
@@ -1289,6 +1289,9 @@
XShapeSelectInput(disp, win, ShapeNotifyMask);
+ if (EventDebug(EDBUG_TYPE_EWINS))
+ Eprintf("EwinCreate %#lx state=%d\n", ewin->client.win, ewin->state);
+
EDBUG_RETURN(ewin);
}
@@ -1311,6 +1314,9 @@
if (!ewin)
EDBUG_RETURN_;
+ if (EventDebug(EDBUG_TYPE_EWINS))
+ Eprintf("EwinDestroy %#lx state=%d\n", ewin->client.win, ewin->state);
+
RemoveItem(NULL, ewin->client.win, LIST_FINDBY_ID, LIST_TYPE_EWIN);
EwinListDelete(&EwinListStack, ewin);
EwinListDelete(&EwinListFocus, ewin);
@@ -1374,6 +1380,9 @@
{
Window win;
+ if (EventDebug(EDBUG_TYPE_EWINS))
+ Eprintf("EwinWithdraw %#lx state=%d\n", ewin->client.win, ewin->state);
+
/* Park the client window on the root */
XTranslateCoordinates(disp, ewin->client.win, root.win,
-ewin->border->border.left,
@@ -1389,6 +1398,10 @@
void
EwinEventDestroy(EWin * ewin)
{
+ if (EventDebug(EDBUG_TYPE_EWINS))
+ Eprintf("EwinEventDestroy %#lx state=%d\n", ewin->client.win,
+ ewin->state);
+
EwinDestroy(ewin);
}
@@ -1396,6 +1409,9 @@
EwinEventMap(EWin * ewin)
{
ewin->state = EWIN_STATE_MAPPED;
+
+ if (EventDebug(EDBUG_TYPE_EWINS))
+ Eprintf("EwinEventMap %#lx state=%d\n", ewin->client.win, ewin->state);
}
void
@@ -1407,6 +1423,9 @@
/* Set state to unknown until we can set the correct one */
ewin->state = (ewin->iconified) ? EWIN_STATE_ICONIC : EWIN_STATE_WITHDRAWN;
+ if (EventDebug(EDBUG_TYPE_EWINS))
+ Eprintf("EwinEventUnmap %#lx state=%d\n", ewin->client.win, ewin->state);
+
ActionsEnd(ewin);
if (ewin->pager)
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs