wingravity = static_gravity not supported
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://
(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: txsetwindowattr
changes: txwindowchanges;
sizehints: pxsizehints;
int1: integer;
begin
gui_init;
with attributes do begin
win_gravity:= staticgravity;
background_
end;
id:= xcreatewindow(
if id <> 0 then begin
sizehints:= xallocsizehints;
xgetwmnormalh
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;
xsetwmnormalh
xfree(sizehints);
xmapwindow(
xflush(
readln;
xdestroywindo
[...]
"
opens a window at wrong position.
xprop:
"
_NET_WM_
_NET_FRAME_
WM_STATE(WM_STATE):
_NET_WM_
_NET_WM_STATE(ATOM) =
_NET_WM_
WM_NORMAL_
"
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
"
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/ FindRightPackag e. 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.]