mirror of
https://github.com/vale981/bspwm
synced 2025-03-05 09:51:38 -05:00
Use proper function names
This commit is contained in:
parent
ee00fda00c
commit
ab6b6c5e36
4 changed files with 5 additions and 5 deletions
2
bspwm.c
2
bspwm.c
|
@ -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);
|
||||
|
|
2
events.c
2
events.c
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue