i3
|
00001 /* 00002 * vim:ts=4:sw=4:expandtab 00003 * 00004 * i3 - an improved dynamic tiling window manager 00005 * © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE) 00006 * 00007 * For more information on RandR, please see the X.org RandR specification at 00008 * http://cgit.freedesktop.org/xorg/proto/randrproto/tree/randrproto.txt 00009 * (take your time to read it completely, it answers all questions). 00010 * 00011 */ 00012 #ifndef _RANDR_H 00013 #define _RANDR_H 00014 00015 #include "data.h" 00016 #include <xcb/randr.h> 00017 00018 TAILQ_HEAD(outputs_head, xoutput); 00019 extern struct outputs_head outputs; 00020 00026 void randr_init(int *event_base); 00027 00033 void disable_randr(xcb_connection_t *conn); 00034 00040 void output_init_con(Output *output); 00041 00052 void init_ws_for_output(Output *output, Con *content); 00053 00058 //void initialize_output(xcb_connection_t *conn, Output *output, Workspace *workspace); 00059 00064 void randr_query_outputs(); 00065 00070 Output *get_first_output(); 00071 00076 Output *get_output_by_name(const char *name); 00077 00083 Output *get_output_containing(int x, int y); 00084 00093 Output *get_output_most(direction_t direction, Output *current); 00094 00099 Output *get_output_next(direction_t direction, Output *current); 00100 00101 #endif