mirror of
https://github.com/gryf/window-maker.github.io.git
synced 2025-12-17 19:20:17 +01:00
Deploy gryf/window-maker.github.io to github.com/gryf/window-maker.github.io.git:gh-pages
This commit is contained in:
17
WINGs_tutorial/FirstWindow.c
Normal file
17
WINGs_tutorial/FirstWindow.c
Normal file
@@ -0,0 +1,17 @@
|
||||
int main (int argc, char **argv){
|
||||
|
||||
Display *display;
|
||||
WMScreen *screen;
|
||||
WMWindow *win;
|
||||
|
||||
WMInitializeApplication("FirstWindow", &argc, argv);
|
||||
|
||||
display = XOpenDisplay("");
|
||||
screen = WMCreateScreen(display, DefaultScreen(display));
|
||||
win = WMCreateWindow(screen, "");
|
||||
|
||||
WMRealizeWidget(win);
|
||||
WMMapWidget(win);
|
||||
|
||||
WMScreenMainLoop(screen);
|
||||
}
|
||||
Reference in New Issue
Block a user