New enumeration for the "mode" field of crossing events. (struct
1998-05-26 Federico Mena Quintero <federico@nuclecu.unam.mx> * gdk/gdktypes.h (GdkCrossingMode): New enumeration for the "mode" field of crossing events. (struct _GdkEventCrossing): Added the following fields: time, x, y, x_root, y_root, mode, focus, state. * gdk/gdk.c (gdk_event_translate): Fill in the new fields of the crossing event structure. * gtk/gtkfeatures.h (GDK_HAVE_FULL_CROSSING_EVENT): Annotate changes to the crossing event structure.
This commit is contained in:
committed by
Arturo Espinosa
parent
d6d54509d3
commit
99fdc828eb
@ -2291,6 +2291,27 @@ gdk_event_translate (GdkEvent *event,
|
||||
else
|
||||
event->crossing.subwindow = NULL;
|
||||
|
||||
event->crossing.time = xevent->xcrossing.time;
|
||||
event->crossing.x = xevent->xcrossing.x;
|
||||
event->crossing.y = xevent->xcrossing.y;
|
||||
event->crossing.x_root = xevent->xcrossing.x_root;
|
||||
event->crossing.y_root = xevent->xcrossing.y_root;
|
||||
|
||||
/* Translate the crossing mode into Gdk terms.
|
||||
*/
|
||||
switch (xevent->xcrossing.mode)
|
||||
{
|
||||
case NotifyNormal:
|
||||
event->crossing.mode = GDK_CROSSING_NORMAL;
|
||||
break;
|
||||
case NotifyGrab:
|
||||
event->crossing.mode = GDK_CROSSING_GRAB;
|
||||
break;
|
||||
case NotifyUngrab:
|
||||
event->crossing.mode = GDK_CROSSING_UNGRAB;
|
||||
break;
|
||||
};
|
||||
|
||||
/* Translate the crossing detail into Gdk terms.
|
||||
*/
|
||||
switch (xevent->xcrossing.detail)
|
||||
@ -2315,6 +2336,9 @@ gdk_event_translate (GdkEvent *event,
|
||||
break;
|
||||
}
|
||||
|
||||
event->crossing.focus = xevent->xcrossing.focus;
|
||||
event->crossing.state = xevent->xcrossing.state;
|
||||
|
||||
#ifdef G_ENABLE_DEBUG
|
||||
if ((gdk_debug_flags & GDK_DEBUG_DND) & gdk_dnd.drag_perhaps)
|
||||
{
|
||||
@ -2365,6 +2389,27 @@ gdk_event_translate (GdkEvent *event,
|
||||
else
|
||||
event->crossing.subwindow = NULL;
|
||||
|
||||
event->crossing.time = xevent->xcrossing.time;
|
||||
event->crossing.x = xevent->xcrossing.x;
|
||||
event->crossing.y = xevent->xcrossing.y;
|
||||
event->crossing.x_root = xevent->xcrossing.x_root;
|
||||
event->crossing.y_root = xevent->xcrossing.y_root;
|
||||
|
||||
/* Translate the crossing mode into Gdk terms.
|
||||
*/
|
||||
switch (xevent->xcrossing.mode)
|
||||
{
|
||||
case NotifyNormal:
|
||||
event->crossing.mode = GDK_CROSSING_NORMAL;
|
||||
break;
|
||||
case NotifyGrab:
|
||||
event->crossing.mode = GDK_CROSSING_GRAB;
|
||||
break;
|
||||
case NotifyUngrab:
|
||||
event->crossing.mode = GDK_CROSSING_UNGRAB;
|
||||
break;
|
||||
};
|
||||
|
||||
/* Translate the crossing detail into Gdk terms.
|
||||
*/
|
||||
switch (xevent->xcrossing.detail)
|
||||
@ -2388,6 +2433,10 @@ gdk_event_translate (GdkEvent *event,
|
||||
event->crossing.detail = GDK_NOTIFY_UNKNOWN;
|
||||
break;
|
||||
}
|
||||
|
||||
event->crossing.focus = xevent->xcrossing.focus;
|
||||
event->crossing.state = xevent->xcrossing.state;
|
||||
|
||||
#ifdef G_ENABLE_DEBUG
|
||||
if ((gdk_debug_flags & GDK_DEBUG_DND) & gdk_dnd.drag_perhaps)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user