diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-06-19 13:18:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-06-19 13:20:15 +0100 |
commit | 109d1d193c959209846337f6fbdac3c588a9eb92 (patch) | |
tree | de7a83f9cea88f759cc50716157db813dec39b0d /vcl | |
parent | b12cd99fd46e81e710479e2530e80c75404f3443 (diff) |
gtk3: get rid of this incorrectly gtk3-only positioning limits holdover
its clearly accidental to do this only for gtk3, left over from various
screen/xinerama untangling efforts
Change-Id: Ic91f41fad5748f68fbefca1d6798fef6e2efe469
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk/window/gtksalframe.cxx | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/vcl/unx/gtk/window/gtksalframe.cxx b/vcl/unx/gtk/window/gtksalframe.cxx index 14ab8a4f8d58..b11a3c9e9f60 100644 --- a/vcl/unx/gtk/window/gtksalframe.cxx +++ b/vcl/unx/gtk/window/gtksalframe.cxx @@ -2093,34 +2093,6 @@ void GtkSalFrame::SetPosSize( long nX, long nY, long nWidth, long nHeight, sal_u nY += m_pParent->maGeometry.nY; } -#if GTK_CHECK_VERSION(3,0,0) - // adjust position to avoid off screen windows - // but allow toolbars to be positioned partly off screen by the user - Size aScreenSize = getDisplay()->GetScreenSize( GetDisplayScreen() ); - if( ! (m_nStyle & SAL_FRAME_STYLE_OWNERDRAWDECORATION) ) - { - if( nX < (long)maGeometry.nLeftDecoration ) - nX = maGeometry.nLeftDecoration; - if( nY < (long)maGeometry.nTopDecoration ) - nY = maGeometry.nTopDecoration; - if( (nX + (long)maGeometry.nWidth + (long)maGeometry.nRightDecoration) > (long)aScreenSize.Width() ) - nX = aScreenSize.Width() - maGeometry.nWidth - maGeometry.nRightDecoration; - if( (nY + (long)maGeometry.nHeight + (long)maGeometry.nBottomDecoration) > (long)aScreenSize.Height() ) - nY = aScreenSize.Height() - maGeometry.nHeight - maGeometry.nBottomDecoration; - } - else - { - if( nX + (long)maGeometry.nWidth < 10 ) - nX = 10 - (long)maGeometry.nWidth; - if( nY + (long)maGeometry.nHeight < 10 ) - nY = 10 - (long)maGeometry.nHeight; - if( nX > (long)aScreenSize.Width() - 10 ) - nX = (long)aScreenSize.Width() - 10; - if( nY > (long)aScreenSize.Height() - 10 ) - nY = (long)aScreenSize.Height() - 10; - } -#endif - if( nX != maGeometry.nX || nY != maGeometry.nY ) bMoved = true; maGeometry.nX = nX; |