Bugfix: use the global root variable, don’t get the first one (Thanks quaec)

This commit is contained in:
Michael Stapelberg
2011-07-23 22:29:01 +02:00
parent 44f46a5ee6
commit ffe297f5e5
3 changed files with 3 additions and 3 deletions

View File

@ -149,8 +149,6 @@ Output *get_output_most(direction_t direction, Output *current) {
*
*/
void disable_randr(xcb_connection_t *conn) {
xcb_screen_t *root_screen = xcb_setup_roots_iterator(xcb_get_setup(conn)).data;
DLOG("RandR extension unusable, disabling.\n");
Output *s = scalloc(sizeof(Output));