2008-02-21 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/x11/clutter-event-x11.c (event_translate): Ignore
	PropertyNotify events if they don't match our window.

	* clutter/x11/clutter-stage-x11.c:
	(clutter_stage_x11_request_coords): Chain up to the parent's
	request coords.
This commit is contained in:
Emmanuele Bassi 2008-02-21 12:45:48 +00:00
parent cbf1b90895
commit 4dfe577fba
3 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2008-02-21 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/x11/clutter-event-x11.c (event_translate): Ignore
PropertyNotify events if they don't match our window.
* clutter/x11/clutter-stage-x11.c:
(clutter_stage_x11_request_coords): Chain up to the parent's
request coords.
2008-02-21 Emmanuele Bassi <ebassi@openedhand.com> 2008-02-21 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/x11/clutter-event-x11.c (event_translate): Ignore * clutter/x11/clutter-event-x11.c (event_translate): Ignore

View File

@ -403,7 +403,9 @@ event_translate (ClutterBackend *backend,
break; break;
case PropertyNotify: case PropertyNotify:
if (xevent->xproperty.atom == backend_x11->atom_NET_WM_STATE) if (xevent->xproperty.atom == backend_x11->atom_NET_WM_STATE &&
xevent->xproperty.window == stage_xwindow &&
!stage_x11->is_foreign_xwin)
{ {
Atom type; Atom type;
gint format; gint format;
@ -455,6 +457,8 @@ event_translate (ClutterBackend *backend,
else else
res = FALSE; res = FALSE;
} }
else
res = FALSE;
break; break;
case MapNotify: case MapNotify:

View File

@ -206,6 +206,9 @@ clutter_stage_x11_request_coords (ClutterActor *self,
stage_x11->xwin, stage_x11->xwin,
CLUTTER_UNITS_TO_INT (box->x1), CLUTTER_UNITS_TO_INT (box->x1),
CLUTTER_UNITS_TO_INT (box->y1)); CLUTTER_UNITS_TO_INT (box->y1));
CLUTTER_ACTOR_CLASS (clutter_stage_x11_parent_class)->request_coords (self,
box);
} }
static void static void