summaryrefslogtreecommitdiff
path: root/vcl/source/window/floatwin.cxx
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2002-01-15 17:51:12 +0000
committerPhilipp Lohmann <pl@openoffice.org>2002-01-15 17:51:12 +0000
commit6e9f8076330353ab60f85617adc4a835c2437bf7 (patch)
treee97c9db90390cfce51da661790f0da15fc8097de /vcl/source/window/floatwin.cxx
parent1eb977c49cfb5ff4257abcce4cf449347c0a3fed (diff)
#95901# avoid mouse pointer with popup menus
Diffstat (limited to 'vcl/source/window/floatwin.cxx')
-rw-r--r--vcl/source/window/floatwin.cxx15
1 files changed, 13 insertions, 2 deletions
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx
index 6bd6ff7ea361..885e12d6b411 100644
--- a/vcl/source/window/floatwin.cxx
+++ b/vcl/source/window/floatwin.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: floatwin.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: ssa $ $Date: 2001-11-01 17:28:31 $
+ * last change: $Author: pl $ $Date: 2002-01-15 18:51:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -330,6 +330,17 @@ Point FloatingWindow::ImplCalcPos( Window* pWindow,
break;
}
+ /*
+ * #95901# avoid mouse pointer for popup menus because
+ * of sawfish window manager. This cannot be done in
+ * the Unix dependant part since that cannot decide between
+ * popup menus and other menus/floatwins.
+ */
+ if( ( (nArrangeAry[nArrangeIndex] == FLOATWIN_POPUPMODE_DOWN) ||
+ (nArrangeAry[nArrangeIndex] == FLOATWIN_POPUPMODE_RIGHT) )
+ && ( nFlags & FLOATWIN_POPUPMODE_ALLMOUSEBUTTONCLOSE ) )
+ aPos.X() += 1;
+
// Evt. noch anpassen
if ( bBreak && !(nFlags & FLOATWIN_POPUPMODE_NOAUTOARRANGE) )
{