summaryrefslogtreecommitdiff
path: root/src
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 /src
parentea5967e2a6a1143c4d9ccc0835362de24c23d197 (diff)
e - enum conversion warnings - fix by doing proper conversion or enumHEADmaster
Diffstat (limited to 'src')
-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 45f589361..9a74469f4 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)
665 { 665 {
666 Ecore_Drm2_Output_Mode *mode; 666 Ecore_Drm2_Output_Mode *mode;
667 Ecore_Drm2_Rotation orient = ECORE_DRM2_ROTATION_NORMAL; 667 Ecore_Drm2_Rotation orient = ECORE_DRM2_ROTATION_NORMAL;
668 Ecore_Drm2_Relative_Mode relmode;
668 669
669 mode = _drm2_mode_screen_find(screenconf[i], outconf[i]); 670 mode = _drm2_mode_screen_find(screenconf[i], outconf[i]);
670 if (screenconf[i]->config.rotation == 0) 671 if (screenconf[i]->config.rotation == 0)
@@ -690,8 +691,19 @@ _drm2_randr_apply(void)
690 691
691 ecore_drm2_output_relative_to_set(outconf[i], 692 ecore_drm2_output_relative_to_set(outconf[i],
692 screenconf[i]->config.relative.to); 693 screenconf[i]->config.relative.to);
693 ecore_drm2_output_relative_mode_set(outconf[i], 694 relmode = ECORE_DRM2_RELATIVE_MODE_NONE;
694 screenconf[i]->config.relative.mode); 695 switch (screenconf[i]->config.relative.mode)
696 {
697 case E_RANDR2_RELATIVE_UNKNOWN: relmode = ECORE_DRM2_RELATIVE_MODE_UNKNOWN; break;
698 case E_RANDR2_RELATIVE_NONE: relmode = ECORE_DRM2_RELATIVE_MODE_NONE; break;
699 case E_RANDR2_RELATIVE_CLONE: relmode = ECORE_DRM2_RELATIVE_MODE_CLONE; break;
700 case E_RANDR2_RELATIVE_TO_LEFT: relmode = ECORE_DRM2_RELATIVE_MODE_TO_LEFT; break;
701 case E_RANDR2_RELATIVE_TO_RIGHT: relmode = ECORE_DRM2_RELATIVE_MODE_TO_RIGHT; break;
702 case E_RANDR2_RELATIVE_TO_ABOVE: relmode = ECORE_DRM2_RELATIVE_MODE_TO_ABOVE; break;
703 case E_RANDR2_RELATIVE_TO_BELOW: relmode = ECORE_DRM2_RELATIVE_MODE_TO_BELOW; break;
704 default: break;
705 }
706 ecore_drm2_output_relative_mode_set(outconf[i], relmode);
695 707
696 if (screenconf[i]->config.priority == top_priority) 708 if (screenconf[i]->config.priority == top_priority)
697 { 709 {
@@ -889,7 +901,7 @@ _drm_device_del(void *data EINA_UNUSED, const Efl_Event *event)
889 if (efl_input_device_type_get(event->info) == EFL_INPUT_DEVICE_TYPE_SEAT) return; 901 if (efl_input_device_type_get(event->info) == EFL_INPUT_DEVICE_TYPE_SEAT) return;
890 seat = efl_input_device_seat_get(event->info); 902 seat = efl_input_device_seat_get(event->info);
891 903
892 if (seat != evas_default_device_get(e_comp->evas, EFL_INPUT_DEVICE_TYPE_SEAT)) return; 904 if (seat != evas_default_device_get(e_comp->evas, EVAS_DEVICE_CLASS_SEAT)) return;
893#ifdef EFL_VERSION_1_23 905#ifdef EFL_VERSION_1_23
894 if (!efl_input_device_is_pointer_type_get(event->info)) return; 906 if (!efl_input_device_is_pointer_type_get(event->info)) return;
895 if (efl_input_device_pointer_device_count_get(seat) == 1) 907 if (efl_input_device_pointer_device_count_get(seat) == 1)