Remove globalconf.have_randr

This variable didn't really have any effect on anything. It was only ever
checked in a function that would never be called if this flag was false.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Uli Schlachter 2009-06-17 14:56:24 +02:00 committed by Julien Danjou
parent acf4202143
commit d088b819f9
2 changed files with 1 additions and 6 deletions

View File

@ -671,9 +671,6 @@ event_handle_randr_screen_change_notify(void *data __attribute__ ((unused)),
xcb_connection_t *connection __attribute__ ((unused)),
xcb_randr_screen_change_notify_event_t *ev)
{
if(!globalconf.have_randr)
return -1;
/* Code of XRRUpdateConfiguration Xlib function ported to XCB
* (only the code relevant to RRScreenChangeNotify) as the latter
* doesn't provide this kind of function */
@ -810,7 +807,7 @@ void a_xcb_set_event_handlers(void)
/* check for randr extension */
randr_query = xcb_get_extension_data(globalconf.connection, &xcb_randr_id);
if((globalconf.have_randr = randr_query->present))
if(randr_query->present)
xcb_event_set_handler(&globalconf.evenths,
randr_query->first_event + XCB_RANDR_SCREEN_CHANGE_NOTIFY,
(xcb_generic_event_handler_t) event_handle_randr_screen_change_notify,

View File

@ -73,8 +73,6 @@ struct awesome_t
button_array_t buttons;
/** Modifiers masks */
uint16_t numlockmask, shiftlockmask, capslockmask, modeswitchmask;
/** Check for XRandR extension */
bool have_randr;
/** Check for XTest extension */
bool have_xtest;
/** Clients list */