forked from enlightenment/efl
ecore-x: provide property state in Ecore_X_Event_Window_Property
this event is not very useful without the state member. @feature
This commit is contained in:
parent
9b0cd29268
commit
5032cf0df3
|
@ -680,6 +680,7 @@ struct _Ecore_X_Event_Window_Property
|
||||||
Ecore_X_Window win;
|
Ecore_X_Window win;
|
||||||
Ecore_X_Atom atom;
|
Ecore_X_Atom atom;
|
||||||
Ecore_X_Time time;
|
Ecore_X_Time time;
|
||||||
|
Eina_Bool state; /**< @since 1.16 If @c EINA_TRUE, property was deleted */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _Ecore_X_Event_Window_Colormap
|
struct _Ecore_X_Event_Window_Colormap
|
||||||
|
|
|
@ -1235,6 +1235,7 @@ _ecore_xcb_event_handle_property_notify(xcb_generic_event_t *event)
|
||||||
e->win = ev->window;
|
e->win = ev->window;
|
||||||
e->atom = ev->atom;
|
e->atom = ev->atom;
|
||||||
e->time = ev->time;
|
e->time = ev->time;
|
||||||
|
e->state = !!ev->state;
|
||||||
_ecore_xcb_event_last_time = e->time;
|
_ecore_xcb_event_last_time = e->time;
|
||||||
|
|
||||||
ecore_event_add(ECORE_X_EVENT_WINDOW_PROPERTY, e, NULL, NULL);
|
ecore_event_add(ECORE_X_EVENT_WINDOW_PROPERTY, e, NULL, NULL);
|
||||||
|
|
|
@ -1351,6 +1351,7 @@ _ecore_x_event_handle_property_notify(XEvent *xevent)
|
||||||
e->win = xevent->xproperty.window;
|
e->win = xevent->xproperty.window;
|
||||||
e->atom = xevent->xproperty.atom;
|
e->atom = xevent->xproperty.atom;
|
||||||
e->time = xevent->xproperty.time;
|
e->time = xevent->xproperty.time;
|
||||||
|
e->state = !!xevent->xproperty.state;
|
||||||
_ecore_x_event_last_time = e->time;
|
_ecore_x_event_last_time = e->time;
|
||||||
ecore_event_add(ECORE_X_EVENT_WINDOW_PROPERTY, e, NULL, NULL);
|
ecore_event_add(ECORE_X_EVENT_WINDOW_PROPERTY, e, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue