if (input->focus.pointer)
ev->win = input->focus.pointer->id;
+ else if (input->focus.prev_pointer)
+ ev->win = input->focus.prev_pointer->id;
if (input->focus.keyboard)
ev->source = input->focus.keyboard->id;
if (input->focus.pointer)
ev->win = input->focus.pointer->id;
+ else if (input->focus.prev_pointer)
+ ev->win = input->focus.prev_pointer->id;
if (input->focus.keyboard)
ev->source = input->focus.keyboard->id;
if (input->focus.pointer)
ev->win = input->focus.pointer->id;
+ else if (input->focus.prev_pointer)
+ ev->win = input->focus.prev_pointer->id;
if (input->focus.keyboard)
ev->source = input->focus.keyboard->id;
{
if (input->focus.pointer)
ev->win = input->focus.pointer->id;
+ else if (input->focus.prev_pointer)
+ ev->win = input->focus.prev_pointer->id;
if (input->focus.keyboard)
ev->source = input->focus.keyboard->id;
if (input->focus.pointer)
ev->win = input->focus.pointer->id;
+ else if (input->focus.prev_pointer)
+ ev->win = input->focus.prev_pointer->id;
if (input->focus.keyboard)
ev->source = input->focus.keyboard->id;
if (!window) return;
window->input = input;
+ input->focus.prev_pointer = NULL;
input->focus.pointer = window;
_ecore_wl2_input_mouse_in_send(input, window);
if (!input) return;
input->display->serial = serial;
+ input->focus.prev_pointer = input->focus.pointer;
input->focus.pointer = NULL;
/* trap for a surface that was just destroyed */