changeset 26443:4ecb1cc48e3c

Update hardware cursor correctly after a transient window is closed.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 05 Apr 2009 11:44:03 +0000
parents f73945e7da00
children 8e594c4cdae4
files finch/libgnt/gntwm.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntwm.c	Sun Apr 05 10:36:20 2009 +0000
+++ b/finch/libgnt/gntwm.c	Sun Apr 05 11:44:03 2009 +0000
@@ -1896,6 +1896,7 @@
 {
 	GntWS *s;
 	int pos;
+	gboolean transient = !!GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_TRANSIENT);
 
 	s = gnt_wm_widget_find_workspace(wm, widget);
 
@@ -1919,6 +1920,8 @@
 			if (s->ordered && wm->cws == s)
 				gnt_wm_raise_window(wm, s->ordered->data);
 		}
+	} else if (transient && wm->cws && wm->cws->ordered) {
+		gnt_wm_update_window(wm, wm->cws->ordered->data);
 	}
 
 	gnt_ws_draw_taskbar(wm->cws, FALSE);