mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
window: Correct coordinates for the configure event
We should still correct the coordinates for withdrawn windows.
This commit is contained in:
parent
6d0c1f08d2
commit
bb035fe6e0
@ -6903,11 +6903,15 @@ send_configure_notify (MetaWindow *window)
|
|||||||
{
|
{
|
||||||
if (window->withdrawn)
|
if (window->withdrawn)
|
||||||
{
|
{
|
||||||
/* WARNING: x & y need to be set to whatever the XReparentWindow
|
MetaFrameBorders borders;
|
||||||
* call in meta_window_destroy_frame will use so that the window
|
/* We reparent the client window and put it to the position
|
||||||
* has the right coordinates. Currently, that means no change to
|
* where the visible top-left of the frame window currently is.
|
||||||
* x & y.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
meta_frame_calc_borders (window->frame, &borders);
|
||||||
|
|
||||||
|
event.xconfigure.x = window->frame->rect.x + borders.invisible.left;
|
||||||
|
event.xconfigure.y = window->frame->rect.y + borders.invisible.top;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user