From 6e9f8076330353ab60f85617adc4a835c2437bf7 Mon Sep 17 00:00:00 2001 From: Philipp Lohmann Date: Tue, 15 Jan 2002 17:51:12 +0000 Subject: #95901# avoid mouse pointer with popup menus --- vcl/source/window/floatwin.cxx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'vcl/source/window/floatwin.cxx') 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) ) { -- cgit