[hackers] [wmix] forgot to add main.c

From: Denis Grelich <jg_AT_suckless.org>
Date: Thu Feb 08 19:24:43 2007

changeset: 30:7ff638fa4c2a
tag: tip
user: Denis Grelich <denisg_AT_suckless.org>
date: Thu Feb 08 19:17:31 2007 +0100
summary: forgot to add main.c

diff -r f9633c146e1a -r 7ff638fa4c2a main.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.c Thu Feb 08 19:17:31 2007 +0100
@@ -0,0 +1,43 @@
+/* (C)opyright MMVII Denis Grelich
+ */
+
+#include "wmii.h"
+#include <X11/Xlib.h>
+#include <X11/Xproto.h>
+
+extern void sleep(int);
+
+int
+main(int argc, char *argv[]) {
+ def.border = DEFAULT_BORDERWIDTH;
+ def.barheight = DEFAULT_BARHEIGHT;
+ def.tag = DEFAULT_TAG;
+
+ /* exits failingly if the display is not accessible */
+// init_X11_server();
+// parse_colors(DEFAULT_NORMCOLORS, 23, &def.normcolor);
+// parse_colors(DEFAULT_SELCOLORS, 23, &def.selcolor);
+// parse_colors(DEFAULT_FOCUSCOLORS, 23, &def.focuscolor);
+// init_graphics();
+ /* exits failingly if another WM is already running */
+// error_handling();
+
+// scope = init_scope(0, 0, DisplayWidth(dpy, screen), DisplayHeight(dpy, screen));
+ /* a scope must never be without view! */
+// sel_view = scope->view = get_view(scope, def.tag);
+
+// def.frame_min.x = def.frame_min.y = 0;
+ // XXX: Dangerous code following: these values must be chosen so that
+ // crect is never null unless the frame is rolled up. Also take care that
+ // nothing nasty happens when the frame is very narrow and increments are
+ // relatively large!
+// def.frame_min.w = def.frame_min.h = 2 * def.barheight;
+
+
+// while (1)
+// check_x_event(); // main loop
+
+// deinit_graphics();
+ puts("this can't happen");
+ return 1;
+}
Received on Thu Feb 08 2007 - 19:24:43 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:00 UTC