pantry/projects/x.org/applewm/test.c
Andrii Riabchenko 1851396e87 new file: projects/x.org/applewm/package.yml
new file:   projects/x.org/applewm/test.c
2023-10-27 18:38:41 -04:00

16 lines
298 B
C

#include <X11/Xlib.h>
#include <X11/extensions/applewm.h>
#include <stdio.h>
int main(void)
{
Display *disp = XOpenDisplay(NULL);
if (disp == NULL)
{
fprintf(stderr, "Unable to connect to display\\n");
return 0;
}
XAppleWMSetFrontProcess(disp);
return 0;
}