Public bug reported: 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 " ** Affects: ubuntu Importance: Undecided Status: New ** Tags: bot-comment windowmanager wingravity -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1312044 Title: wingravity = static_gravity not supported To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+bug/1312044/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs