mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
16 lines
298 B
C
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;
|
||
|
}
|