Use proper function names

This commit is contained in:
Bastien Dejean 2014-05-05 11:35:06 +02:00
parent ee00fda00c
commit ab6b6c5e36
4 changed files with 5 additions and 5 deletions

View file

@ -267,7 +267,7 @@ void setup(void)
#undef GETATOM
const xcb_query_extension_reply_t *qep = xcb_get_extension_data(dpy, &xcb_randr_id);
if (qep->present && import_monitors()) {
if (qep->present && update_monitors()) {
randr = true;
randr_base = qep->first_event;
xcb_randr_select_input(dpy, root, XCB_RANDR_NOTIFY_MASK_SCREEN_CHANGE);

View file

@ -69,7 +69,7 @@ void handle_event(xcb_generic_event_t *evt)
break;
default:
if (randr && resp_type == randr_base + XCB_RANDR_SCREEN_CHANGE_NOTIFY)
import_monitors();
update_monitors();
break;
}
}

View file

@ -323,9 +323,9 @@ monitor_t *nearest_monitor(monitor_t *m, direction_t dir, desktop_select_t sel)
return nearest;
}
bool import_monitors(void)
bool update_monitors(void)
{
PUTS("import monitors");
PUTS("update monitors");
xcb_randr_get_screen_resources_current_reply_t *sres = xcb_randr_get_screen_resources_current_reply(dpy, xcb_randr_get_screen_resources_current(dpy, root), NULL);
if (sres == NULL)
return false;

View file

@ -47,6 +47,6 @@ bool is_inside_monitor(monitor_t *m, xcb_point_t pt);
monitor_t *monitor_from_point(xcb_point_t pt);
monitor_t *monitor_from_client(client_t *c);
monitor_t *nearest_monitor(monitor_t *m, direction_t dir, desktop_select_t sel);
bool import_monitors(void);
bool update_monitors(void);
#endif