changeset 18344:310bad6dafe4

Allow raising window only from an event-stack, otherwise set the urgent flag.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 28 Jun 2007 18:41:43 +0000
parents 27e54692b2b4
children 2d4df5ef0090
files finch/libgnt/gntmain.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntmain.c	Thu Jun 28 18:35:38 2007 +0000
+++ b/finch/libgnt/gntmain.c	Thu Jun 28 18:41:43 2007 +0000
@@ -488,8 +488,12 @@
  * Stuff for 'window management' *
  *********************************/
 
-void gnt_window_present(GntWidget *window) {
-	gnt_wm_raise_window(wm, window);
+void gnt_window_present(GntWidget *window)
+{
+	if (wm->event_stack)
+		gnt_wm_raise_window(wm, window);
+	else
+		gnt_widget_set_urgent(window);
 }
 
 void gnt_screen_occupy(GntWidget *widget)