diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-11 04:04:42 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-11 04:04:42 +0000 |
| commit | af8b457f40997d2a7b2d7c8fdbcd7aee177d7e75 (patch) | |
| tree | f06a69bc9752a895558144735def163490e8ff28 | |
| parent | 76b795e9de7d74635a9fb6b0c95d4c2745a9da0b (diff) | |
send configure notify when moving a window
| -rw-r--r-- | src/client.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/client.cc b/src/client.cc index 07bf6f0b..f7207bbc 100644 --- a/src/client.cc +++ b/src/client.cc @@ -1005,6 +1005,22 @@ void OBClient::move(int x, int y) // move the frame to be in the requested position if (frame) // this can be called while mapping, before frame exists 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); } |
