cursor_entered = 1;
}
if( cursor_entered )
- XSetInputFocus(display, win, RevertToParent, CurrentTime);
+ focus();
}
event_win = event->xany.window;
cursor_x = event->xcrossing.x;
set_opaque();
}
+void BC_WindowBase::focus()
+{
+ XSetInputFocus(top_level->display, top_level->win, RevertToParent, CurrentTime);
+}
+