window.c: Update pointer focus when taking a grab

This commit is contained in:
Kristian Høgsberg 2014-04-29 14:11:26 -07:00
parent 9c376b54ea
commit 41f7ebc36a
1 changed files with 2 additions and 0 deletions

View File

@ -2558,6 +2558,8 @@ input_grab(struct input *input, struct widget *widget, uint32_t button)
{
input->grab = widget;
input->grab_button = button;
input_set_focus_widget(input, widget, input->sx, input->sy);
}
void