[maemo-commits] [maemo-commits] r12696 - in projects/haf/trunk/hildon-desktop: . libhildondesktop

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Jul 9 16:35:05 EEST 2007
Author: moimart
Date: 2007-07-09 16:35:02 +0300 (Mon, 09 Jul 2007)
New Revision: 12696

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-popup-window.c
Log:
2007-07-09  Moises Martinez  <moises.martinez at nokia.com>

        * libhildondesktop/hildon-desktop-popup-window.c:
        (hildon_desktop_popup_window_leave_notify):
        - Check wether we are going to a composited window only if those are
        visible.
	* ChangeLog updated.



Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-07-09 13:14:47 UTC (rev 12695)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-07-09 13:35:02 UTC (rev 12696)
@@ -1,3 +1,10 @@
+2007-07-09  Moises Martinez  <moises.martinez at nokia.com>
+
+	* libhildondesktop/hildon-desktop-popup-window.c:
+	(hildon_desktop_popup_window_leave_notify):
+	- Check wether we are going to a composited window only if those are
+	visible.
+
 2007-07-09  Johan Bilien  <johan.bilien at nokia.com>
 
 	* libhildondesktop/libhildonmenu.c:

Modified: projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-popup-window.c
===================================================================
--- projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-popup-window.c	2007-07-09 13:14:47 UTC (rev 12695)
+++ projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-popup-window.c	2007-07-09 13:35:02 UTC (rev 12696)
@@ -461,13 +461,16 @@
   HildonDesktopPopupWindow *popup = HILDON_DESKTOP_POPUP_WINDOW (widget);
   gint w,h,x,y,i;
   gboolean in_panes_area = FALSE;
-
- /* We have to ungrab the pointer in here, we should get this when we go to
+ 
+  /* We have to ungrab the pointer in here, we should get this when we go to
   * a composited window
   */
 
   for (i=0; i < popup->priv->n_extra_panes; i++)
   {
+    if (!GTK_WIDGET_VISIBLE (popup->priv->extra_panes[i]))
+      continue; 
+
     w = popup->priv->extra_panes[i]->allocation.width;
     h = popup->priv->extra_panes[i]->allocation.height;
 


More information about the maemo-commits mailing list