Renaming area_get

Renaming area_get to more appropriate area_handle_click
This commit is contained in:
rootcoma 2014-08-07 02:17:43 -07:00
parent cceba87770
commit 7f8e8d11f6
1 changed files with 2 additions and 2 deletions

4
bar.c
View File

@ -215,7 +215,7 @@ set_attribute (const char modifier, const char attribute)
void
area_get (xcb_window_t win, const int x, const int button)
area_handle_click (xcb_window_t win, const int x, const int button)
{
for (int i = 0; i < astack.pos; i++)
if (astack.slot[i].window == win && x > astack.slot[i].begin && x < astack.slot[i].end && button == astack.slot[i].button) {
@ -1178,7 +1178,7 @@ main (int argc, char **argv)
press_ev = (xcb_button_press_event_t *)ev;
{
/* Respond to the click */
area_get(press_ev->event, press_ev->event_x, press_ev->detail);
area_handle_click(press_ev->event, press_ev->event_x, press_ev->detail);
}
break;
}