send configure notify when moving a window
This commit is contained in:
parent
76b795e9de
commit
af8b457f40
1 changed files with 16 additions and 0 deletions
|
@ -1005,6 +1005,22 @@ void OBClient::move(int x, int y)
|
||||||
// move the frame to be in the requested position
|
// move the frame to be in the requested position
|
||||||
if (frame) // this can be called while mapping, before frame exists
|
if (frame) // this can be called while mapping, before frame exists
|
||||||
frame->adjustPosition();
|
frame->adjustPosition();
|
||||||
|
|
||||||
|
// send synthetic configure notify
|
||||||
|
XEvent event;
|
||||||
|
event.type = ConfigureNotify;
|
||||||
|
event.xconfigure.display = otk::OBDisplay::display;
|
||||||
|
event.xconfigure.event = _window;
|
||||||
|
event.xconfigure.window = _window;
|
||||||
|
event.xconfigure.x = x;
|
||||||
|
event.xconfigure.y = y;
|
||||||
|
event.xconfigure.width = _area.width();
|
||||||
|
event.xconfigure.height = _area.height();
|
||||||
|
event.xconfigure.border_width = _border_width;
|
||||||
|
event.xconfigure.above = frame->window();
|
||||||
|
event.xconfigure.override_redirect = False;
|
||||||
|
XSendEvent(event.xconfigure.display, event.xconfigure.window, False,
|
||||||
|
StructureNotifyMask, &event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue