always send the event on a final configure even if there was no real move

This commit is contained in:
Dana Jansens 2003-03-24 20:09:31 +00:00
parent 7beec94a1f
commit c9ba604668

View file

@ -1405,28 +1405,26 @@ void client_configure(Client *self, Corner anchor, int x, int y, int w, int h,
if (moved || resized) if (moved || resized)
engine_frame_adjust_area(self->frame, moved, resized); engine_frame_adjust_area(self->frame, moved, resized);
if (moved) { if (!user || final) {
if (!user || final) { XEvent event;
XEvent event; event.type = ConfigureNotify;
event.type = ConfigureNotify; event.xconfigure.display = ob_display;
event.xconfigure.display = ob_display; event.xconfigure.event = self->window;
event.xconfigure.event = self->window; event.xconfigure.window = self->window;
event.xconfigure.window = self->window;
/* root window coords with border in mind */ /* root window coords with border in mind */
event.xconfigure.x = x - self->border_width + event.xconfigure.x = x - self->border_width +
self->frame->size.left; self->frame->size.left;
event.xconfigure.y = y - self->border_width + event.xconfigure.y = y - self->border_width +
self->frame->size.top; self->frame->size.top;
event.xconfigure.width = self->area.width; event.xconfigure.width = self->area.width;
event.xconfigure.height = self->area.height; event.xconfigure.height = self->area.height;
event.xconfigure.border_width = self->border_width; event.xconfigure.border_width = self->border_width;
event.xconfigure.above = self->frame->plate; event.xconfigure.above = self->frame->plate;
event.xconfigure.override_redirect = FALSE; event.xconfigure.override_redirect = FALSE;
XSendEvent(event.xconfigure.display, event.xconfigure.window, XSendEvent(event.xconfigure.display, event.xconfigure.window,
FALSE, StructureNotifyMask, &event); FALSE, StructureNotifyMask, &event);
}
} }
} }
} }