mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 12:35:10 +03:00
1851396e87
new file: projects/x.org/applewm/test.c
16 lines
No EOL
298 B
C
16 lines
No EOL
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;
|
|
} |