wingravity = static_gravity not supported

Bug #1312044 reported by Martin Schreiber
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu
Expired
Undecided
Unassigned

Bug Description

It has been reported that Ubuntu 14.04 does not work well with MSEide+MSEgui
http://sourceforge.net/projects/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
"
[...]
const
 xpos1 = 100;
 ypos1 = 100;
 width1 = 200;
 height1 = 100;

var
 id: winidty;
 attributes: txsetwindowattributes;
 changes: txwindowchanges;
 sizehints: pxsizehints;
 int1: integer;
begin
 gui_init;
 with attributes do begin
  win_gravity:= staticgravity;
  background_pixel:= 0;
 end;
 id:= xcreatewindow(msedisplay,mserootwindow,xpos1,ypos1,width1,height1,0,
            copyfromparent,copyfromparent,pvisual(copyfromparent),
            cwwingravity or cwbackpixel,@attributes);
 if id <> 0 then begin
  sizehints:= xallocsizehints;
  xgetwmnormalhints(msedisplay,id,sizehints,@int1);
  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;
  end;
  xsetwmnormalhints(msedisplay,id,sizehints);
  xfree(sizehints);
  xmapwindow(msedisplay,id);
  xflush(msedisplay);
  readln;
  xdestroywindow(msedisplay,id);
[...]
"
opens a window at wrong position.
xprop:
"
_NET_WM_ICON_GEOMETRY(CARDINAL) = 5, 762, 54, 54
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 28, 0
WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
_NET_WM_DESKTOP(CARDINAL) = 0
_NET_WM_STATE(ATOM) =
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_STICK, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW
WM_NORMAL_HINTS(WM_SIZE_HINTS):
                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
"
xinfo:
"
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
"

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

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 https://wiki.ubuntu.com/Bugs/FindRightPackage. 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 https://bugs.launchpad.net/ubuntu/+bug/1312044/+editstatus 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
Revision history for this message
Paul White (paulw2u) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. We are sorry that we do not always have the capacity to review all reported bugs in a timely manner.

Ubuntu 14.04 (trusty) reached end-of-standard-support on April 25, 2019.

I'm setting the status of this bug to 'Incomplete' as it's not seen any activity for some time. If this is still an issue when using a currently maintained release of Ubuntu then please let us know which one(s) otherwise this bug report can be left to expire in approximately 60 days time.

Changed in ubuntu:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Ubuntu because there has been no activity for 60 days.]

Changed in ubuntu:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.