only send configu notify if the window is mapped (has a frame)
This commit is contained in:
parent
08dc156639
commit
fd5369cd17
1 changed files with 18 additions and 16 deletions
|
@ -1003,24 +1003,26 @@ void OBClient::move(int x, int y)
|
||||||
_area.setPos(x, y);
|
_area.setPos(x, 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
|
// send synthetic configure notify (we don't need to if we aren't mapped
|
||||||
XEvent event;
|
// yet)
|
||||||
event.type = ConfigureNotify;
|
XEvent event;
|
||||||
event.xconfigure.display = otk::OBDisplay::display;
|
event.type = ConfigureNotify;
|
||||||
event.xconfigure.event = _window;
|
event.xconfigure.display = otk::OBDisplay::display;
|
||||||
event.xconfigure.window = _window;
|
event.xconfigure.event = _window;
|
||||||
event.xconfigure.x = x;
|
event.xconfigure.window = _window;
|
||||||
event.xconfigure.y = y;
|
event.xconfigure.x = x;
|
||||||
event.xconfigure.width = _area.width();
|
event.xconfigure.y = y;
|
||||||
event.xconfigure.height = _area.height();
|
event.xconfigure.width = _area.width();
|
||||||
event.xconfigure.border_width = _border_width;
|
event.xconfigure.height = _area.height();
|
||||||
event.xconfigure.above = frame->window();
|
event.xconfigure.border_width = _border_width;
|
||||||
event.xconfigure.override_redirect = False;
|
event.xconfigure.above = frame->window();
|
||||||
XSendEvent(event.xconfigure.display, event.xconfigure.window, False,
|
event.xconfigure.override_redirect = False;
|
||||||
StructureNotifyMask, &event);
|
XSendEvent(event.xconfigure.display, event.xconfigure.window, False,
|
||||||
|
StructureNotifyMask, &event);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue