wingravity = static_gravity not supported

Bug #1312044 reported by Martin Schreiber on 2014-04-24
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

It has been reported that Ubuntu 14.04 does not work well with MSEide+MSEgui
(a cross platform GUI development environment).
The window positions are wrong, especially by maximizing and normalizing back a window. I absolutely don't know Ubuntu; I made a default installation and could reproduce the problem. A first investigation shows that the window-manager seems not to respect the wm hint wingravity = static_gravity in xconfigurewindow() call. Instead to place the client area at the wanted position it uses the top-left corner of the decoration window. The program
 xpos1 = 100;
 ypos1 = 100;
 width1 = 200;
 height1 = 100;

 id: winidty;
 attributes: txsetwindowattributes;
 changes: txwindowchanges;
 sizehints: pxsizehints;
 int1: integer;
 with attributes do begin
  win_gravity:= staticgravity;
  background_pixel:= 0;
 id:= xcreatewindow(msedisplay,mserootwindow,xpos1,ypos1,width1,height1,0,
            cwwingravity or cwbackpixel,@attributes);
 if id <> 0 then begin
  sizehints:= xallocsizehints;
  with sizehints^ do begin
   flags:= flags or pposition or psize or usposition or ussize
               or pbasesize or pwingravity;
   x:= xpos1;
   y:= ypos1;
   width:= width1;
   height:= height1;
   base_width:= width1;
   base_height:= height1;
   win_gravity:= staticgravity;
opens a window at wrong position.
                window state: Normal
                icon window: 0x0
                user specified location: 100, 100
                program specified location: 100, 100
                user specified size: 200 by 100
                program specified size: 200 by 100
                program specified base size: 200 by 100
                window gravity: Static
xwininfo: Window id: 0x4000004 (has no name)

  Absolute upper-left X: 100
  Absolute upper-left Y: 128
  Relative upper-left X: 0
  Relative upper-left Y: 0
  Width: 200
  Height: 100
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: StaticGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners: +100+128 -1100+128 -1100-822 +100-822
  -geometry 200x100+100+128

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers