Re-Implement support for RandR changes
This commit is contained in:
@ -202,6 +202,7 @@ struct xoutput {
|
||||
/** x, y, width, height */
|
||||
Rect rect;
|
||||
|
||||
#if 0
|
||||
/** The bar window */
|
||||
xcb_window_t bar;
|
||||
xcb_gcontext_t bargc;
|
||||
@ -209,6 +210,7 @@ struct xoutput {
|
||||
/** Contains all clients with _NET_WM_WINDOW_TYPE ==
|
||||
* _NET_WM_WINDOW_TYPE_DOCK */
|
||||
SLIST_HEAD(dock_clients_head, Client) dock_clients;
|
||||
#endif
|
||||
|
||||
TAILQ_ENTRY(xoutput) outputs;
|
||||
};
|
||||
|
@ -71,6 +71,7 @@ int handle_map_request(void *prophs, xcb_connection_t *conn,
|
||||
*
|
||||
*/
|
||||
int handle_configure_event(void *prophs, xcb_connection_t *conn, xcb_configure_notify_event_t *event);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Gets triggered upon a RandR screen change event, that is when the user
|
||||
@ -79,7 +80,6 @@ int handle_configure_event(void *prophs, xcb_connection_t *conn, xcb_configure_n
|
||||
*/
|
||||
int handle_screen_change(void *prophs, xcb_connection_t *conn,
|
||||
xcb_generic_event_t *e);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Configure requests are received when the application wants to resize
|
||||
|
@ -31,6 +31,16 @@ void randr_init(int *event_base);
|
||||
*/
|
||||
void disable_randr(xcb_connection_t *conn);
|
||||
|
||||
/**
|
||||
* Initializes a CT_OUTPUT Con (searches existing ones from inplace restart
|
||||
* before) to use for the given Output.
|
||||
*
|
||||
* XXX: for assignments, we probably need to move workspace creation from here
|
||||
* to after the loop in randr_query_outputs().
|
||||
*
|
||||
*/
|
||||
void output_init_con(Output *output);
|
||||
|
||||
/**
|
||||
* Initializes the specified output, assigning the specified workspace to it.
|
||||
*
|
||||
|
Reference in New Issue
Block a user