summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-02-25 13:44:47 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-12-03 11:18:48 -0500
commit9717994d060ad525bff2e46d1e69337cee9dd995 (patch)
treed1ab66cf5c85ce3629f934e5b753b2b64531c9b1
parent0525154d25eb70edb04f135b877dad3cd0cb8174 (diff)
wl-drm: Add call to set cloned or not cloned outputdevs/devilhorns/output
-rw-r--r--src/modules/wl_drm/e_mod_main.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/modules/wl_drm/e_mod_main.c b/src/modules/wl_drm/e_mod_main.c
index a88c0b9c2..8962cf65d 100644
--- a/src/modules/wl_drm/e_mod_main.c
+++ b/src/modules/wl_drm/e_mod_main.c
@@ -686,7 +686,6 @@ _drm2_randr_apply(void)
686 ecore_drm2_output_mode_set(outconf[i], mode, 686 ecore_drm2_output_mode_set(outconf[i], mode,
687 screenconf[i]->config.geom.x, 687 screenconf[i]->config.geom.x,
688 screenconf[i]->config.geom.y); 688 screenconf[i]->config.geom.y);
689 ecore_drm2_output_rotation_set(outconf[i], orient);
690 689
691 ecore_drm2_output_relative_to_set(outconf[i], 690 ecore_drm2_output_relative_to_set(outconf[i],
692 screenconf[i]->config.relative.to); 691 screenconf[i]->config.relative.to);
@@ -702,23 +701,26 @@ _drm2_randr_apply(void)
702 ecore_drm2_output_enabled_set(outconf[i], 701 ecore_drm2_output_enabled_set(outconf[i],
703 screenconf[i]->config.enabled); 702 screenconf[i]->config.enabled);
704 703
704 ecore_evas_rotation_with_resize_set(e_comp->ee,
705 screenconf[i]->config.rotation);
706
705 if ((screenconf[i]->config.relative.to) && 707 if ((screenconf[i]->config.relative.to) &&
706 (screenconf[i]->config.relative.mode == 708 (screenconf[i]->config.relative.mode ==
707 E_RANDR2_RELATIVE_CLONE)) 709 E_RANDR2_RELATIVE_CLONE))
708 { 710 {
709 Ecore_Drm2_Output *clone; 711 Ecore_Drm2_Output *clone;
710 712
711 clone = _drm2_output_find(outputs, 713 clone =
712 screenconf[i]->config.relative.to); 714 _drm2_output_find(outputs,
713 ecore_evas_output_clone_set(e_comp->ee, outconf[i], 715 screenconf[i]->config.relative.to);
714 clone); 716 fprintf(stderr, "WL_DRM: SET OUTPUT CLONED !!\n");
717 ecore_evas_output_clone_set(e_comp->ee, outconf[i], clone);
715 } 718 }
716 else 719 else
717 ecore_evas_output_clone_set(e_comp->ee, outconf[i], 720 {
718 NULL); 721 fprintf(stderr, "WL_DRM: SET OUTPUT NOT CLONED !!\n");
719 /* ecore_drm2_output_cloned_set(dev, outconf[i], EINA_TRUE); */ 722 ecore_evas_output_clone_set(e_comp->ee, outconf[i], NULL);
720 /* else */ 723 }
721 /* ecore_drm2_output_cloned_set(dev, outconf[i], EINA_FALSE); */
722 } 724 }
723 else 725 else
724 { 726 {
@@ -738,7 +740,6 @@ _drm2_randr_apply(void)
738 printf("RRR: set vsize: %ix%i\n", nw, nh); 740 printf("RRR: set vsize: %ix%i\n", nw, nh);
739 ecore_drm2_device_calibrate(dev, nw, nh); 741 ecore_drm2_device_calibrate(dev, nw, nh);
740 ecore_drm2_device_pointer_max_set(dev, nw, nh); 742 ecore_drm2_device_pointer_max_set(dev, nw, nh);
741 ecore_drm2_device_pointer_warp(dev, nw / 2, nh / 2);
742} 743}
743 744
744static void 745static void