mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 02:01:42 -05:00
Minor cleanup in 'enter_notify'
This commit is contained in:
parent
c0e3b0e93a
commit
898245ad9d
2 changed files with 6 additions and 6 deletions
9
events.c
9
events.c
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue