From 0ac5eb5f14cc1bdb410846fba36aef8ab858a862 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 13 Jan 2012 17:15:46 +0000 Subject: vcl: isolate new attempt to count monitors as screens to gtk3 fdo#43458 It turns out this new idea of mapping xinerama screens, and xrandr monitors into a flat integer space is nice, but when we confuse xrandr monitor 2 (idx 1) with X screen 1 (there is only one screen) we bit the dust. Many thanks to Cor Nouws for remote debugging assistance --- vcl/unx/gtk/window/gtkframe.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vcl/unx/gtk') diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx index 06d29d5f54c2..f778354ed5c9 100644 --- a/vcl/unx/gtk/window/gtkframe.cxx +++ b/vcl/unx/gtk/window/gtkframe.cxx @@ -4160,10 +4160,12 @@ gboolean GtkSalFrame::IMHandler::signalIMDeleteSurrounding( GtkIMContext*, gint return sal_False; } +#if GTK_CHECK_VERSION(3,0,0) Size GtkSalDisplay::GetScreenSize( int nScreen ) { Rectangle aRect = m_pSys->GetDisplayScreenPosSizePixel( nScreen ); return Size( aRect.GetWidth(), aRect.GetHeight() ); } +#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit