forked from enlightenment/efl
ok 1 segv less. this code looks most suspicious...
SVN revision: 67671
This commit is contained in:
parent
517a436cbc
commit
53c539ae55
|
@ -75,18 +75,18 @@ static int _ecore_wl_surface_y = 0;
|
|||
static int _ecore_wl_touch_x = 0;
|
||||
static int _ecore_wl_touch_y = 0;
|
||||
static int _ecore_wl_input_modifiers = 0;
|
||||
static struct xkb_desc *_ecore_wl_xkb;
|
||||
static struct xkb_desc *_ecore_wl_xkb = NULL;
|
||||
static uint32_t _ecore_wl_input_button = 0;
|
||||
|
||||
static struct wl_compositor *_ecore_wl_comp;
|
||||
static struct wl_shm *_ecore_wl_shm;
|
||||
static struct wl_shell *_ecore_wl_shell;
|
||||
static struct wl_output *_ecore_wl_output;
|
||||
static struct wl_input_device *_ecore_wl_input_dev;
|
||||
static struct wl_surface *_ecore_wl_input_surface;
|
||||
static struct wl_surface *_ecore_wl_touch_surface;
|
||||
static struct wl_data_device_manager *_ecore_wl_data_manager;
|
||||
static struct wl_data_device *_ecore_wl_data_dev;
|
||||
static struct wl_compositor *_ecore_wl_comp = NULL;
|
||||
static struct wl_shm *_ecore_wl_shm = NULL;
|
||||
static struct wl_shell *_ecore_wl_shell = NULL;
|
||||
static struct wl_output *_ecore_wl_output = NULL;
|
||||
static struct wl_input_device *_ecore_wl_input_dev = NULL;
|
||||
static struct wl_surface *_ecore_wl_input_surface = NULL;
|
||||
static struct wl_surface *_ecore_wl_touch_surface = NULL;
|
||||
static struct wl_data_device_manager *_ecore_wl_data_manager = NULL;
|
||||
static struct wl_data_device *_ecore_wl_data_dev = NULL;
|
||||
|
||||
static const struct wl_output_listener _ecore_wl_output_listener =
|
||||
{
|
||||
|
@ -553,6 +553,7 @@ _ecore_wl_cb_handle_button(void *data __UNUSED__, struct wl_input_device *dev, u
|
|||
if (state)
|
||||
{
|
||||
_ecore_wl_input_button = btn;
|
||||
if (_ecore_wl_input_surface)
|
||||
_ecore_wl_mouse_down_send(_ecore_wl_input_surface, btn, t);
|
||||
/* NB: Ideally, this is not the place to check for drags.
|
||||
* IMO, drags should be handled by the client. EG: we raise the
|
||||
|
@ -576,6 +577,7 @@ _ecore_wl_cb_handle_button(void *data __UNUSED__, struct wl_input_device *dev, u
|
|||
}
|
||||
}
|
||||
_ecore_wl_input_button = 0;
|
||||
if (_ecore_wl_input_surface)
|
||||
_ecore_wl_mouse_up_send(_ecore_wl_input_surface, btn, t);
|
||||
}
|
||||
}
|
||||
|
@ -1020,12 +1022,15 @@ _ecore_wl_mouse_move_send(uint32_t timestamp)
|
|||
{
|
||||
unsigned int id = 0;
|
||||
|
||||
if (_ecore_wl_input_surface)
|
||||
{
|
||||
if ((id = (unsigned int)wl_surface_get_user_data(_ecore_wl_input_surface)))
|
||||
{
|
||||
ev->window = id;
|
||||
ev->event_window = id;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ecore_event_add(ECORE_EVENT_MOUSE_MOVE, ev, NULL, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue