diff options
author | Christopher Michael <devilhorns@comcast.net> | 2021-03-01 10:33:31 -0500 |
---|---|---|
committer | Christopher Michael <devilhorns@comcast.net> | 2021-03-01 10:33:31 -0500 |
commit | f174e739e162e1e2ce070deee97f3cf67517fc76 (patch) | |
tree | 509498c56088a2165c2905208dad7338b19e222a | |
parent | 350b65fc21fb413ea69b07d8dc12510eae38e846 (diff) | |
download | efl-f174e739e162e1e2ce070deee97f3cf67517fc76.tar.gz |
ecore-evas-wayland: Remove wayland wobbly windows junk
Never worked properly, is unsupported by upstream wayland, and is just
general clutter so let's remove it.
-rw-r--r-- | src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c index 5a815fdd90..1cec016ebc 100644 --- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c +++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c @@ -987,45 +987,6 @@ _rotation_do(Ecore_Evas *ee, int rotation, int resize) } } -static Eina_Bool -_ecore_evas_wl_common_cb_www_drag(void *d EINA_UNUSED, int t EINA_UNUSED, void *event) -{ - Ecore_Wl2_Event_Window_WWW_Drag *ev = event; - Ecore_Evas_Engine_Wl_Data *wdata; - Ecore_Evas *ee; - - ee = ecore_event_window_match((Ecore_Window)ev->window); - if ((!ee) || (ee->ignore_events)) return ECORE_CALLBACK_PASS_ON; - if ((Ecore_Window)ev->window != ee->prop.window) - return ECORE_CALLBACK_PASS_ON; - - wdata = ee->engine.data; - wdata->dragging = !!ev->dragging; - if (!ev->dragging) - evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h); - return ECORE_CALLBACK_RENEW; -} - -static Eina_Bool -_ecore_evas_wl_common_cb_www(void *d EINA_UNUSED, int t EINA_UNUSED, void *event) -{ - Ecore_Wl2_Event_Window_WWW *ev = event; - Ecore_Evas_Engine_Wl_Data *wdata; - Ecore_Evas *ee; - - ee = ecore_event_window_match((Ecore_Window)ev->window); - if ((!ee) || (ee->ignore_events)) return ECORE_CALLBACK_PASS_ON; - if ((Ecore_Window)ev->window != ee->prop.window) - return ECORE_CALLBACK_PASS_ON; - - wdata = ee->engine.data; - wdata->x_rel += ev->x_rel; - wdata->y_rel += ev->y_rel; - wdata->timestamp = ev->timestamp; - evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h); - return ECORE_CALLBACK_RENEW; -} - static void _ecore_evas_wl_common_cb_device_event_free(void *user_data, void *func_data) { @@ -1361,14 +1322,6 @@ _ecore_evas_wl_common_init(void) _ecore_evas_wl_common_cb_window_configure, NULL); eina_array_push(_ecore_evas_wl_event_hdls, h); - h = ecore_event_handler_add(_ecore_wl2_event_window_www, - _ecore_evas_wl_common_cb_www, NULL); - eina_array_push(_ecore_evas_wl_event_hdls, h); - - h = ecore_event_handler_add(_ecore_wl2_event_window_www_drag, - _ecore_evas_wl_common_cb_www_drag, NULL); - eina_array_push(_ecore_evas_wl_event_hdls, h); - h = ecore_event_handler_add(ECORE_WL2_EVENT_DISCONNECT, _ecore_evas_wl_common_cb_disconnect, NULL); eina_array_push(_ecore_evas_wl_event_hdls, h); @@ -2255,7 +2208,6 @@ _ecore_evas_wl_common_show(Ecore_Evas *ee) einfo->info.destination_alpha = ee_needs_alpha(ee); einfo->info.wl2_win = wdata->win; einfo->info.hidden = wdata->win->pending.configure; //EINA_FALSE; - einfo->www_avail = !!wdata->win->www_surface; if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo)) ERR("Failed to set Evas Engine Info for '%s'", ee->driver); if (ECORE_EVAS_PORTRAIT(ee)) |