[Debian GNUstep maintainers] Bug#315274: Menu is outside the screen when screen changes its resolution

Anton Zinoviev Anton Zinoviev <zinoviev@fmi.uni-sofia.bg>, 315274@bugs.debian.org
Tue, 21 Jun 2005 18:31:14 +0300


Package: libgnustep-gui0.9
Version: 0.9.5-1
Tags: forwarded

[If you reply, please keep the CC to nnn@bugs.debian.org]

When an application is started for first time the coordinates of the
upper left corner are computed (in GNUstep (0,0) are the coordinates of
the lower left corder) and the menu is placed there.  If the user moves 
the menu to another place, exits the application and then restarts it, 
the menu will stay at the place the user has left it.  This means that 
the GNUstep applications remember the place of the menu.

The problem comes when the screen size changes to a smaller (for example 
from 1280x1024 to 1024x768 or from 1024x768 to 800x600).  The previously 
computed coordinates are already outside the screen, however GNUstep 
failes to take this into account and the menu is unreachable.

I suppose that similar problem arises with the application windows also,
although my window manager (wmaker) displays the usual application 
windows always inside the screen, only the move-bar is sometimes outside 
the screen.

I think that GNUstep shuld notice wnen the screen size is changed and
display the menu using relative coordinates, not absolute coordinates. 
For example the usual menu place is (0%, 100%) regardless of how big the
screen is.  I am used to place my menu at the lower left corner in a way
that only a thin bar of 1-2 pixels width is visible inside the screen. 
After the recomputations of the new menu place GNUstep should ensure
that at least 1 pixel of the header of the menu is inside the screen 
(or probably even the whole header of the menu).

Anton Zinoviev