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:
parent
acf4202143
commit
d088b819f9
5
event.c
5
event.c
|
@ -671,9 +671,6 @@ event_handle_randr_screen_change_notify(void *data __attribute__ ((unused)),
|
||||||
xcb_connection_t *connection __attribute__ ((unused)),
|
xcb_connection_t *connection __attribute__ ((unused)),
|
||||||
xcb_randr_screen_change_notify_event_t *ev)
|
xcb_randr_screen_change_notify_event_t *ev)
|
||||||
{
|
{
|
||||||
if(!globalconf.have_randr)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
/* Code of XRRUpdateConfiguration Xlib function ported to XCB
|
/* Code of XRRUpdateConfiguration Xlib function ported to XCB
|
||||||
* (only the code relevant to RRScreenChangeNotify) as the latter
|
* (only the code relevant to RRScreenChangeNotify) as the latter
|
||||||
* doesn't provide this kind of function */
|
* doesn't provide this kind of function */
|
||||||
|
@ -810,7 +807,7 @@ void a_xcb_set_event_handlers(void)
|
||||||
|
|
||||||
/* check for randr extension */
|
/* check for randr extension */
|
||||||
randr_query = xcb_get_extension_data(globalconf.connection, &xcb_randr_id);
|
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,
|
xcb_event_set_handler(&globalconf.evenths,
|
||||||
randr_query->first_event + XCB_RANDR_SCREEN_CHANGE_NOTIFY,
|
randr_query->first_event + XCB_RANDR_SCREEN_CHANGE_NOTIFY,
|
||||||
(xcb_generic_event_handler_t) event_handle_randr_screen_change_notify,
|
(xcb_generic_event_handler_t) event_handle_randr_screen_change_notify,
|
||||||
|
|
|
@ -73,8 +73,6 @@ struct awesome_t
|
||||||
button_array_t buttons;
|
button_array_t buttons;
|
||||||
/** Modifiers masks */
|
/** Modifiers masks */
|
||||||
uint16_t numlockmask, shiftlockmask, capslockmask, modeswitchmask;
|
uint16_t numlockmask, shiftlockmask, capslockmask, modeswitchmask;
|
||||||
/** Check for XRandR extension */
|
|
||||||
bool have_randr;
|
|
||||||
/** Check for XTest extension */
|
/** Check for XTest extension */
|
||||||
bool have_xtest;
|
bool have_xtest;
|
||||||
/** Clients list */
|
/** Clients list */
|
||||||
|
|
Loading…
Reference in New Issue