2009-02-14 02:33:31 +01:00
|
|
|
/*
|
|
|
|
* vim:ts=8:expandtab
|
|
|
|
*
|
|
|
|
* i3 - an improved dynamic tiling window manager
|
|
|
|
*
|
|
|
|
* (c) 2009 Michael Stapelberg and contributors
|
|
|
|
*
|
|
|
|
* See file LICENSE for license information.
|
|
|
|
*
|
|
|
|
*/
|
2009-02-13 19:04:45 +01:00
|
|
|
#include <xcb/xcb.h>
|
2009-04-19 20:44:34 +02:00
|
|
|
#include <xcb/xcb_property.h>
|
2009-02-13 19:04:45 +01:00
|
|
|
#include <xcb/xcb_event.h>
|
|
|
|
|
|
|
|
#include <X11/XKBlib.h>
|
|
|
|
|
|
|
|
#include "queue.h"
|
2009-04-19 20:44:34 +02:00
|
|
|
#include "data.h"
|
2009-02-13 19:04:45 +01:00
|
|
|
|
|
|
|
#ifndef _I3_H
|
|
|
|
#define _I3_H
|
|
|
|
|
2009-03-14 22:09:36 +01:00
|
|
|
#define NUM_ATOMS 12
|
2009-02-24 01:24:28 +01:00
|
|
|
|
2009-02-27 22:40:48 +01:00
|
|
|
extern char *application_path;
|
2009-02-13 19:04:45 +01:00
|
|
|
extern Display *xkbdpy;
|
|
|
|
extern TAILQ_HEAD(bindings_head, Binding) bindings;
|
2009-02-24 00:30:04 +01:00
|
|
|
extern SLIST_HEAD(stack_wins_head, Stack_Window) stack_wins;
|
2009-02-13 19:04:45 +01:00
|
|
|
extern xcb_event_handlers_t evenths;
|
|
|
|
extern int num_screens;
|
2009-02-24 01:24:28 +01:00
|
|
|
extern xcb_atom_t atoms[NUM_ATOMS];
|
2009-02-13 19:04:45 +01:00
|
|
|
|
2009-04-19 20:44:34 +02:00
|
|
|
void manage_window(xcb_property_handlers_t *prophs, xcb_connection_t *conn, xcb_window_t window, window_attributes_t wa);
|
|
|
|
void reparent_window(xcb_connection_t *conn, xcb_window_t child,
|
|
|
|
xcb_visualid_t visual, xcb_window_t root, uint8_t depth,
|
|
|
|
int16_t x, int16_t y, uint16_t width, uint16_t height);
|
|
|
|
|
2009-02-13 19:04:45 +01:00
|
|
|
#endif
|