File 0010-WIP-windows-taskbar.patch of Package mingw32-evince

From 0c98e67a5da0a90c1172540ee0c028d5c4ac323b Mon Sep 17 00:00:00 2001
From: Hib Eris <hib@hiberis.nl>
Date: Mon, 26 Sep 2011 12:15:25 +0200
Subject: [PATCH 10/12] WIP windows taskbar

This hack is to work around the bug that Evince's windows is placed behind the Windows taskbar when that is on top of the screen.

Bug #619872
---
 shell/ev-application.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/shell/ev-application.c b/shell/ev-application.c
index 49d4db6..643a997 100644
--- a/shell/ev-application.c
+++ b/shell/ev-application.c
@@ -645,10 +645,10 @@ ev_application_open_uri_in_window (EvApplication  *application,
 	   we can restore window size without flickering */
 	ev_window_open_uri (ev_window, uri, dest, mode, search_string);
 
+#ifdef GDK_WINDOWING_X11
 	if (!gtk_widget_get_realized (GTK_WIDGET (ev_window)))
 		gtk_widget_realize (GTK_WIDGET (ev_window));
 
-#ifdef GDK_WINDOWING_X11
 	gdk_window = gtk_widget_get_window (GTK_WIDGET (ev_window));
 	if (GDK_IS_X11_WINDOW (gdk_window)) {
 		if (timestamp <= 0)
-- 
1.7.5.4

openSUSE Build Service is sponsored by