Commit a4fa4578 authored by Tinu Weber's avatar Tinu Weber
Browse files


parent 5073f481
ayekat/stwm README
Simple Tiling Window Manager.
Does not manage any windows yet. But it *does* tiling. And it is simple.
build & run
<code>make</code> will create a binary *stwm*.
<code>make run</code> will launch it on the X display :1 (if you've got already
something running there, modify the Makefile, or launch stwm manually on your
preferred X display).
* <code>Space</code>: add a new window
* <code>d</code>: delete a window
* <code>l</code>: increase the master area
* <code>h</code>: decrease the master area
*stwm* can be quit by deleting a window when there is no window.
#include <X11/Xlib.h>
#include <X11/cursorfont.h>
#include <X11/keysym.h>
#include <stdio.h> /* fprintf() */
#include <stdlib.h> /* NULL, EXIT_FAILURE */
#include <unistd.h> /* sleep() */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdbool.h>
#include <stdarg.h>
......@@ -62,7 +62,7 @@ createClient(void)
/* create client */
cn = malloc(sizeof(Client));
if (cn == NULL) {
warn("could not allocate new client\n");
warn("Could not allocate new client.\n");
......@@ -229,8 +229,7 @@ main(int argc, char **argv)
/* open the display */
dpy = XOpenDisplay(NULL);
if (dpy == NULL) {
fprintf(stderr, "Could not open X.\n");
die("Could not open X.\n");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment