i3
|
00001 /* 00002 * vim:ts=8:expandtab 00003 * 00004 * i3 - an improved dynamic tiling window manager 00005 * 00006 * © 2009-2010 Michael Stapelberg and contributors 00007 * 00008 * See file LICENSE for license information. 00009 * 00010 */ 00011 #include "data.h" 00012 #include <xcb/randr.h> 00013 00014 #ifndef _RANDR_H 00015 #define _RANDR_H 00016 00017 TAILQ_HEAD(outputs_head, xoutput); 00018 extern struct outputs_head outputs; 00019 00025 void initialize_randr(xcb_connection_t *conn, int *event_base); 00026 00032 void disable_randr(xcb_connection_t *conn); 00033 00038 void initialize_output(xcb_connection_t *conn, Output *output, Workspace *workspace); 00039 00044 void randr_query_outputs(xcb_connection_t *conn); 00045 00050 Output *get_first_output(); 00051 00056 Output *get_output_by_name(const char *name); 00057 00063 Output *get_output_containing(int x, int y); 00064 00073 Output *get_output_most(direction_t direction, Output *current); 00074 00075 #endif