parent
ee80ddd579
commit
15d97f371f
@ -0,0 +1,26 @@
|
|||||||
|
From 85211f1ef30b07927d768348ce28ac34ade62f03 Mon Sep 17 00:00:00 2001
|
||||||
|
From: David Tardon <dtardon@redhat.com>
|
||||||
|
Date: Wed, 2 May 2012 14:26:11 +0200
|
||||||
|
Subject: [PATCH] fdo#49365 correctly map monitor index back to screen
|
||||||
|
|
||||||
|
Change-Id: I396b34119a2686011640d5f15de616fe2a166237
|
||||||
|
---
|
||||||
|
vcl/unx/gtk/app/gtksys.cxx | 2 +-
|
||||||
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/vcl/unx/gtk/app/gtksys.cxx b/vcl/unx/gtk/app/gtksys.cxx
|
||||||
|
index 3927dbf..538107f 100644
|
||||||
|
--- a/vcl/unx/gtk/app/gtksys.cxx
|
||||||
|
+++ b/vcl/unx/gtk/app/gtksys.cxx
|
||||||
|
@@ -92,7 +92,7 @@ GtkSalSystem::getScreenMonitorFromIdx (GdkDisplay *pDisplay, int nIdx, gint &nMo
|
||||||
|
pScreen = gdk_display_get_screen (pDisplay, i);
|
||||||
|
if (!pScreen)
|
||||||
|
break;
|
||||||
|
- if (nIdx > gdk_screen_get_n_monitors (pScreen))
|
||||||
|
+ if (nIdx >= gdk_screen_get_n_monitors (pScreen))
|
||||||
|
nIdx -= gdk_screen_get_n_monitors (pScreen);
|
||||||
|
else
|
||||||
|
break;
|
||||||
|
--
|
||||||
|
1.7.7.6
|
||||||
|
|
@ -0,0 +1,25 @@
|
|||||||
|
From 9d5da4e1d12c224286f871b28b7df31215f67d31 Mon Sep 17 00:00:00 2001
|
||||||
|
From: David Tardon <dtardon@redhat.com>
|
||||||
|
Date: Thu, 26 Apr 2012 06:36:22 +0200
|
||||||
|
Subject: [PATCH] incrementing index twice in one run seems wrong
|
||||||
|
|
||||||
|
---
|
||||||
|
vcl/unx/gtk/app/gtksys.cxx | 2 +-
|
||||||
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/vcl/unx/gtk/app/gtksys.cxx b/vcl/unx/gtk/app/gtksys.cxx
|
||||||
|
index bf3fba7..3927dbf 100644
|
||||||
|
--- a/vcl/unx/gtk/app/gtksys.cxx
|
||||||
|
+++ b/vcl/unx/gtk/app/gtksys.cxx
|
||||||
|
@@ -89,7 +89,7 @@ GtkSalSystem::getScreenMonitorFromIdx (GdkDisplay *pDisplay, int nIdx, gint &nMo
|
||||||
|
GdkScreen *pScreen = NULL;
|
||||||
|
for (gint i = 0; i < gdk_display_get_n_screens (pDisplay); i++)
|
||||||
|
{
|
||||||
|
- pScreen = gdk_display_get_screen (pDisplay, i++);
|
||||||
|
+ pScreen = gdk_display_get_screen (pDisplay, i);
|
||||||
|
if (!pScreen)
|
||||||
|
break;
|
||||||
|
if (nIdx > gdk_screen_get_n_monitors (pScreen))
|
||||||
|
--
|
||||||
|
1.7.7.6
|
||||||
|
|
Loading…
Reference in new issue