Public bug reported:

Binary package hint: metacity

Setting the max size on a window somehow changes the gravity of the window too. 
We use static gravity on a window, i.e. use internal bounds (non chrome bounds) 
in all gdt / gtk calls. Thus to set a window to 0,0 we will call 
gdk_window_move(window, 5, 24) where 5, 24 come from chrome computation.
So setting the bounds to 5,24 actually sets the window to 0,0.

But once we have set max size on the window (on Ubuntu) using
gdk_window_set_geometry_hints, setting the bounds to 5,24 does not place
it to 0,0 but to 5,24 instead (behaving as if NorthWest gravity).

Attaching a sample app with code to demonstrate the issue.

** Affects: metacity (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Seeting max size on a window using gdk_window_set_geometry_hints, changes the 
window gravity
https://bugs.launchpad.net/bugs/481140
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to