diff options
Diffstat (limited to 'src/fe-gtk/fe-gtk.c')
-rw-r--r-- | src/fe-gtk/fe-gtk.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c index 8c7e515a..4a20006a 100644 --- a/src/fe-gtk/fe-gtk.c +++ b/src/fe-gtk/fe-gtk.c @@ -908,13 +908,8 @@ fe_gui_info (session *sess, int info_type) if (!GTK_WIDGET_VISIBLE (GTK_WIDGET (sess->gui->window))) #endif return 2; /* hidden (iconified or systray) */ -#if GTK_CHECK_VERSION(2,4,0) + if (gtk_window_is_active (GTK_WINDOW (sess->gui->window))) -#else -#if GTK_CHECK_VERSION(2,2,0) - if (GTK_WINDOW (sess->gui->window)->is_active) -#endif -#endif return 1; /* active/focused */ return 0; /* normal (no keyboard focus or behind a window) */ |