Issue 19157 - no pop-down on Unix, of palettes ...
Summary: no pop-down on Unix, of palettes ...
Status: CLOSED FIXED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 RC4
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 1.1.1
Assignee: ru
QA Contact: issues@gsl
URL:
Keywords:
: 19299 23360 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-09-06 13:31 UTC by mmeeks
Modified: 2004-01-27 17:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description mmeeks 2003-09-06 13:31:38 UTC
Hi Philipp,
    I had a poke to see if indeed Metacity is moving the windows around, and
(from my debug) it seems we're not - however, we're getting some eroneous
move/re-size action happening, apparently based on some decrementing of border
dimensions;

    This patch fixes it for me :-)

-- vcl/unx/source/window/salframe.cxx
+++ vcl/unx/source/window/salframe.cxx
@@ -3295,8 +3295,8 @@
                            &nLeft,
                            &nTop,
                            &hDummy );
-    pFrame_->maGeometry.nLeftDecoration	= nLeft > 0 ? nLeft-1 : 0;
-    pFrame_->maGeometry.nTopDecoration	= nTop  > 0 ? nTop-1  : 0;
+    pFrame_->maGeometry.nLeftDecoration	= nLeft;
+    pFrame_->maGeometry.nTopDecoration	= nTop;
 
     /*
      *  decorations are not symmetric,

HTH.
Comment 1 philipp.lohmann 2003-09-08 09:00:17 UTC
Strange. I'll have a further look at that.
Comment 2 philipp.lohmann 2003-09-08 09:00:51 UTC
Fix should go into 1.1
Comment 3 philipp.lohmann 2003-09-08 18:54:23 UTC
For a time you had me thinking i was a complete idiot. Now I'm down to
only half an idiot again :-) I see the problem now; but the solution
as i see it is a little different:

diff -r1.164 salframe.cxx
3314,3315c3314,3315
<     pFrame_->maGeometry.nX            = xp +
pFrame_->maGeometry.nLeftDecoration;
<     pFrame_->maGeometry.nY            = yp +
pFrame_->maGeometry.nTopDecoration;
---
>     pFrame_->maGeometry.nX            = xp + nLeft;
>     pFrame_->maGeometry.nY            = yp + nTop;

The main problem is that if any further event shows up the frame will
seem to have moved because the position is off by one. But the
(nLeft-1,nTop-1) for the decorations is still correct as the sum of
decorations plus frame width should equal the width of the WM parent
window. This is the case if the left/top decoration is decreased by one.

The reason for the -1 by the way was an accessibility issue; the
accessibility applications work with coordinates of the outer frame
(that is the frame including decorations; i can only guess that this
stems from some Windows weirdo specification). It always came with an
offset of (-1,-1) but came up correctly on other platforms (well,
Windows, you guessed it) so i gathered the offset was from the
decorations - which proves to be true still, since now the decorations
plus the (inner) frame width/height add up the WM parent's size.

In addition there really are some window managers that move the window
around (Dtwm, IceWm), but that's mostly because we have to set a
different window gravity hint - either to get them to respect our
positioning requests or to make them not do insane things (IceWM and
others do weird things if you set StaticGravity - what a mess). Which
was what i remembered dimly on Thursday and was why i told you, the WM
would move the window around where the ICCCM conforming of them are
totally innocent. Sorry.

fixed in CWS vcl7pp1r2
Comment 4 philipp.lohmann 2003-09-09 11:17:15 UTC
pl->ru: please verify in CWS vcl7pp1r2, for verification you also need
to check if #104086# is still fixed.
Comment 5 ru 2003-09-09 14:54:51 UTC
.
Comment 6 ru 2003-09-09 14:56:43 UTC
Verified on accessible Gnome build from 28/08/2003.
Comment 7 stephan_schaefer 2003-09-15 11:06:30 UTC
*** Issue 19299 has been marked as a duplicate of this issue. ***
Comment 8 philipp.lohmann 2004-01-12 11:02:51 UTC
*** Issue 23360 has been marked as a duplicate of this issue. ***
Comment 9 ru 2004-01-27 17:15:03 UTC
.