21 lines
607 B
C
21 lines
607 B
C
#ifndef ASWM_CONFIGURE
|
|
#define ASWM_CONFIGURE
|
|
|
|
#include "configure.h"
|
|
#include <stdio.h>
|
|
|
|
void OnConfigureRequest(const XConfigureRequestEvent* e) {
|
|
XWindowChanges changes;
|
|
printf("XConfigureRequestEvent %lu\n", e->window);
|
|
// Copy fields from e to changes.
|
|
changes.x = e->x;
|
|
changes.y = e->y;
|
|
changes.width = e->width;
|
|
changes.height = e->height;
|
|
changes.border_width = e->border_width;
|
|
changes.sibling = e->above;
|
|
changes.stack_mode = e->detail;
|
|
// Grant request by calling XConfigureWindow().
|
|
XConfigureWindow(e->display, e->window, e->value_mask, &changes);
|
|
}
|
|
#endif
|