summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-07-08 17:39:43 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-07-08 17:39:43 +0100
commit12ddeaa2d1450130054bd0b9f131f409b3948b30 (patch)
tree744c4f2d771df13c3a453ab3edb8c6024feae611
parentea5967e2a6a1143c4d9ccc0835362de24c23d197 (diff)
downloadenlightenment-12ddeaa2d1450130054bd0b9f131f409b3948b30.tar.gz
e - enum conversion warnings - fix by doing proper conversion or enum
-rw-r--r--src/modules/wl_drm/e_mod_main.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/modules/wl_drm/e_mod_main.c b/src/modules/wl_drm/e_mod_main.c
index 45f5893618..9a74469f4f 100644
--- a/src/modules/wl_drm/e_mod_main.c
+++ b/src/modules/wl_drm/e_mod_main.c
@@ -665,6 +665,7 @@ _drm2_randr_apply(void)
{
Ecore_Drm2_Output_Mode *mode;
Ecore_Drm2_Rotation orient = ECORE_DRM2_ROTATION_NORMAL;
+ Ecore_Drm2_Relative_Mode relmode;
mode = _drm2_mode_screen_find(screenconf[i], outconf[i]);
if (screenconf[i]->config.rotation == 0)
@@ -690,8 +691,19 @@ _drm2_randr_apply(void)
ecore_drm2_output_relative_to_set(outconf[i],
screenconf[i]->config.relative.to);
- ecore_drm2_output_relative_mode_set(outconf[i],
- screenconf[i]->config.relative.mode);
+ relmode = ECORE_DRM2_RELATIVE_MODE_NONE;
+ switch (screenconf[i]->config.relative.mode)
+ {
+ case E_RANDR2_RELATIVE_UNKNOWN: relmode = ECORE_DRM2_RELATIVE_MODE_UNKNOWN; break;
+ case E_RANDR2_RELATIVE_NONE: relmode = ECORE_DRM2_RELATIVE_MODE_NONE; break;
+ case E_RANDR2_RELATIVE_CLONE: relmode = ECORE_DRM2_RELATIVE_MODE_CLONE; break;
+ case E_RANDR2_RELATIVE_TO_LEFT: relmode = ECORE_DRM2_RELATIVE_MODE_TO_LEFT; break;
+ case E_RANDR2_RELATIVE_TO_RIGHT: relmode = ECORE_DRM2_RELATIVE_MODE_TO_RIGHT; break;
+ case E_RANDR2_RELATIVE_TO_ABOVE: relmode = ECORE_DRM2_RELATIVE_MODE_TO_ABOVE; break;
+ case E_RANDR2_RELATIVE_TO_BELOW: relmode = ECORE_DRM2_RELATIVE_MODE_TO_BELOW; break;
+ default: break;
+ }
+ ecore_drm2_output_relative_mode_set(outconf[i], relmode);
if (screenconf[i]->config.priority == top_priority)
{
@@ -889,7 +901,7 @@ _drm_device_del(void *data EINA_UNUSED, const Efl_Event *event)
if (efl_input_device_type_get(event->info) == EFL_INPUT_DEVICE_TYPE_SEAT) return;
seat = efl_input_device_seat_get(event->info);
- if (seat != evas_default_device_get(e_comp->evas, EFL_INPUT_DEVICE_TYPE_SEAT)) return;
+ if (seat != evas_default_device_get(e_comp->evas, EVAS_DEVICE_CLASS_SEAT)) return;
#ifdef EFL_VERSION_1_23
if (!efl_input_device_is_pointer_type_get(event->info)) return;
if (efl_input_device_pointer_device_count_get(seat) == 1)