Minor cleanup in 'enter_notify'

This commit is contained in:
Bastien Dejean 2012-10-23 19:29:21 +02:00
parent c0e3b0e93a
commit 898245ad9d
2 changed files with 6 additions and 6 deletions

View file

@ -273,12 +273,13 @@ void enter_notify(xcb_generic_event_t *evt)
PRINTF("enter notify %X %d %d\n", e->event, e->mode, e->detail);
if (!focus_follows_mouse
|| (e->mode != XCB_NOTIFY_MODE_NORMAL && e->detail == XCB_NOTIFY_DETAIL_INFERIOR))
return;
xcb_point_t pos;
get_pointer_position(&pos);
if (!focus_follows_mouse
|| (e->mode != XCB_NOTIFY_MODE_NORMAL && e->detail == XCB_NOTIFY_DETAIL_INFERIOR)
|| (pointer_position.x == pos.x && pointer_position.y == pos.y))
if (pointer_position.x == pos.x && pointer_position.y == pos.y)
return;
window_location_t loc;

View file

@ -24,8 +24,7 @@ void run_autostart(void)
setsid();
execl(path, path, NULL);
PUTS("error: could not load autostart file");
exit(EXIT_SUCCESS);
err("could not load autostart file");
}
void load_settings(void)