mirror of
https://github.com/0intro/wmii
synced 2024-11-29 17:13:11 +03:00
37d553300f
Improved focus semantics. /client/*/ctl slay command. Find unresponsive clients on kill. Draw titlebars of floating clients differently. Hack to set window properties of programs: wihack command/libwmii_hack.so library. Added wmii.rc, on which rc.wmii now depends. The usual cleanup.
29 lines
624 B
C
29 lines
624 B
C
|
|
typedef unsigned long ulong;
|
|
typedef unsigned int uint;
|
|
typedef unsigned char uchar;
|
|
|
|
#define _XOPEN_SOURCE 600
|
|
#define IXP_P9_STRUCTS
|
|
#define IXP_NO_P9_
|
|
#include <assert.h>
|
|
#include <stdarg.h>
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <x11.h>
|
|
#include <X11/Xlib.h>
|
|
|
|
#define strdup my_strdup
|
|
|
|
static int getlong(const char*, long*);
|
|
static uint tokenize(char*[], uint, char*, char);
|
|
static char* smprint(const char*, ...);
|
|
static char* vsmprint(const char*, va_list);
|
|
static char* strdup(const char*);
|
|
|
|
#define nil ((void*)0)
|
|
#define nelem(ary) (sizeof(ary) / sizeof(*ary))
|
|
|