Enlightenment CVS committal
Author : sebastid
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_x
Modified Files:
Ecore_X.h ecore_x_events.c
Log Message:
Fill in the detail from the configure request.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -3 -r1.115 -r1.116
--- Ecore_X.h 30 Apr 2005 06:55:20 -0000 1.115
+++ Ecore_X.h 2 May 2005 07:13:51 -0000 1.116
@@ -108,6 +108,14 @@
ECORE_X_WINDOW_STATE_ACTION_TOGGLE
} Ecore_X_Window_State_Action;
+typedef enum _Ecore_X_Window_Stack_Mode {
+ ECORE_X_WINDOW_STACK_ABOVE = 0,
+ ECORE_X_WINDOW_STACK_BELOW = 1,
+ ECORE_X_WINDOW_STACK_TOP_IF = 2,
+ ECORE_X_WINDOW_STACK_BOTTOM_IF = 3,
+ ECORE_X_WINDOW_STACK_OPPOSITE = 4
+} Ecore_X_Window_Stack_Mode;
+
#define ECORE_X_SELECTION_TARGET_TARGETS "TARGETS"
#define ECORE_X_SELECTION_TARGET_TEXT "TEXT"
#define ECORE_X_SELECTION_TARGET_COMPOUND_TEXT "COMPOUND_TEXT"
@@ -442,7 +450,7 @@
Ecore_X_Window abovewin;
int x, y, w, h;
int border;
- int detail;
+ Ecore_X_Window_Stack_Mode detail;
unsigned long value_mask;
Ecore_X_Time time;
};
@@ -836,14 +844,6 @@
ECORE_X_WINDOW_CONFIGURE_MASK_STACK_MODE = (1 << 6)
} Ecore_X_Window_Configure_Mask;
-typedef enum _Ecore_X_Window_Stack_Mode {
- ECORE_X_WINDOW_STACK_ABOVE = 0,
- ECORE_X_WINDOW_STACK_BELOW = 1,
- ECORE_X_WINDOW_STACK_TOP_IF = 2,
- ECORE_X_WINDOW_STACK_BOTTOM_IF = 3,
- ECORE_X_WINDOW_STACK_OPPOSITE = 4
-} Ecore_X_Window_Stack_Mode;
-
/* Window layer constants */
#define ECORE_X_WINDOW_LAYER_BELOW 2
#define ECORE_X_WINDOW_LAYER_NORMAL 4
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_events.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -3 -r1.53 -r1.54
--- ecore_x_events.c 28 Apr 2005 12:26:34 -0000 1.53
+++ ecore_x_events.c 2 May 2005 07:13:52 -0000 1.54
@@ -833,6 +833,16 @@
e->border = xevent->xconfigurerequest.border_width;
e->value_mask = xevent->xconfigurerequest.value_mask;
e->time = _ecore_x_event_last_time;
+ if (xevent->xconfigurerequest.detail == Above)
+ e->detail = ECORE_X_WINDOW_STACK_ABOVE;
+ else if (xevent->xconfigurerequest.detail == Below)
+ e->detail = ECORE_X_WINDOW_STACK_BELOW;
+ else if (xevent->xconfigurerequest.detail == TopIf)
+ e->detail = ECORE_X_WINDOW_STACK_TOP_IF;
+ else if (xevent->xconfigurerequest.detail == BottomIf)
+ e->detail = ECORE_X_WINDOW_STACK_BOTTOM_IF;
+ else if (xevent->xconfigurerequest.detail == Opposite)
+ e->detail = ECORE_X_WINDOW_STACK_OPPOSITE;
ecore_event_add(ECORE_X_EVENT_WINDOW_CONFIGURE_REQUEST, e, NULL, NULL);
}
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs