96e14d8103
Fixes the case where multiple lines are read in a single read syscall (it could be better optimized in the future). Also fixes a memory corruption issue when rec == 0.
37 lines
567 B
C
37 lines
567 B
C
/*
|
|
* i3bar - an xcb-based status- and ws-bar for i3
|
|
*
|
|
* © 2010 Axel Wagner and contributors
|
|
*
|
|
* See file LICNSE for license information
|
|
*
|
|
*/
|
|
#ifndef COMMON_H_
|
|
#define COMMON_H_
|
|
|
|
typedef struct rect_t rect;
|
|
typedef int bool;
|
|
|
|
struct ev_loop* main_loop;
|
|
char *statusline;
|
|
char *statusline_buffer;
|
|
|
|
struct rect_t {
|
|
int x;
|
|
int y;
|
|
int w;
|
|
int h;
|
|
};
|
|
|
|
#include "queue.h"
|
|
#include "child.h"
|
|
#include "ipc.h"
|
|
#include "outputs.h"
|
|
#include "util.h"
|
|
#include "workspaces.h"
|
|
#include "xcb.h"
|
|
#include "ucs2_to_utf8.h"
|
|
#include "config.h"
|
|
|
|
#endif
|