This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch devs/devilhorns/apos
in repository efl.
View the commit online.
commit 9e2d010a50498e035a84903d5a880e1953cf7d84
Author: Christopher Michael <[email protected]>
AuthorDate: Fri Jan 16 09:02:43 2026 -0600
ecore_drm2: Add API to set display position
---
src/lib/ecore_drm2/Ecore_Drm2.h | 1 +
src/lib/ecore_drm2/ecore_drm2_displays.c | 17 +++++++++++++++++
2 files changed, 18 insertions(+)
diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index e26a005fc4..2d64f53a1a 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -173,6 +173,7 @@ EAPI void *ecore_drm2_display_user_data_get(Ecore_Drm2_Display *disp);
EAPI Eina_Bool ecore_drm2_display_blanktime_get(Ecore_Drm2_Display *disp, int seq, long *sec, long *usec);
EAPI Eina_Bool ecore_drm2_display_changes_apply(Ecore_Drm2_Display *disp);
EAPI void ecore_drm2_display_gamma_set(Ecore_Drm2_Display *disp, uint16_t size, uint16_t *red, uint16_t *greeen, uint16_t *blue);
+EAPI void ecore_drm2_display_position_set(Ecore_Drm2_Display *disp, int x, int y);
/* Crtc API functions */
EAPI void ecore_drm2_crtc_geometry_get(Ecore_Drm2_Crtc *crtc, int *x, int *y, int *w, int *h);
diff --git a/src/lib/ecore_drm2/ecore_drm2_displays.c b/src/lib/ecore_drm2/ecore_drm2_displays.c
index 4590af0459..42a534c98e 100644
--- a/src/lib/ecore_drm2/ecore_drm2_displays.c
+++ b/src/lib/ecore_drm2/ecore_drm2_displays.c
@@ -1588,3 +1588,20 @@ ecore_drm2_display_gamma_set(Ecore_Drm2_Display *disp, uint16_t size, uint16_t *
pstate->gamma.b = blue;
pstate->changes |= ECORE_DRM2_DISPLAY_STATE_GAMMA;
}
+
+EAPI void
+ecore_drm2_display_position_set(Ecore_Drm2_Display *disp, int x, int y)
+{
+ Ecore_Drm2_Display_State *cstate, *pstate;
+
+ EINA_SAFETY_ON_NULL_RETURN(disp);
+
+ cstate = disp->state.current;
+ pstate = disp->state.pending;
+
+ if ((cstate->x == x) && (cstate->y == y)) return;
+
+ pstate->x = x;
+ pstate->y = y;
+ pstate->changes |= ECORE_DRM2_DISPLAY_STATE_POSITION;
+}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.