GNOME Bugzilla – Bug 534135
_NET_MOVERESIZE_WINDOW sometimes discards new window position
Last modified: 2008-05-22 19:40:16 UTC
I'm running into a situation where _NET_MOVERESIZE_WINDOW winds up not moving the window at all. After tracing through metacity, it seems that as part of meta_window_move_resize_internal, constrain_size_increment is changing the x & y position back to the old (pre-move) position of the window. When constrain_size_increment calls meta_rectangle_resize_with_gravity, the latter function winds up using the x & y information from 'old_rect' to populate rect.x and rect.y. The original values of the 'x' & 'y' members of 'rect' are totally ignored. However, when 'constrain_size_increment' calls 'meta_rectangle_resize_with_gravity', 'constrain_size_increment' is passing in the new position as the 'rect', and the original pre-move position of the window as 'old_rect'. So the end result is when all is said and done, the window winds up at its original location. Suggestions for a workaround would be appreciated as well. _NET_MOVERESIZE_WINDOW is convenient because it will allow me to specify the window size/position including all the window decorations.
I'm almost certain this was fixed in bug 448183...could you try with a newer version?
The description on 448183 sounds exactly the same as what my investigations turned up. Thanks - closing as a dupe. *** This bug has been marked as a duplicate of 448183 ***