Deploy gryf/window-maker.github.io to github.com/gryf/window-maker.github.io.git:gh-pages

This commit is contained in:
Deployment Bot (from Travis CI)
2020-04-06 17:04:05 +00:00
commit 17a465baa1
240 changed files with 23516 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
void closeAll(WMWidget *self,void *data){
fprintf(stderr,"I've been used!\n");
WMDestroyWidget(self);
exit(0);
}
int main (int argc, char **argv){
Display *display;
WMScreen *screen;
WMWindow *win;
WMColor *color;
WMInitializeApplication("SecondWin", &argc, argv);
if (!(display = XOpenDisplay(""))){
fprintf(stderr, "cannot open display\n");
exit(1);
}
screen = WMCreateScreen(display, DefaultScreen(display));
win = WMCreateWindow(screen, "");
WMSetWindowCloseAction(win, closeAll, NULL);
color = WMCreateRGBColor(screen,124<<9,206<<8,162<<8, False);
WMSetWidgetBackgroundColor((WMWidget *)win, color);
WMMapWidget(win);
WMRealizeWidget(win);
WMScreenMainLoop(screen);
return 0;
}