aswm/src/configure.c
Paul Breugnot cb31369947 🎉 Let's go
A minimalistic but working X XM POC.
2024-12-07 10:13:17 +01:00

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