From 764c68a330e1c5523f762b02cb9517fac19db7ae Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Tue, 21 Aug 2012 08:06:53 +0000 Subject: [PATCH] use e17 zone property first before using randr to find screen - more correct. SVN revision: 75491 --- legacy/ecore/src/lib/ecore_evas/ecore_evas_x.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_x.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_x.c index 4bf407d..e2a7b41 100644 --- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_x.c +++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_x.c @@ -2952,7 +2952,16 @@ _ecore_evas_x_screen_geometry_get(const Ecore_Evas *ee __UNUSED__, int *x, int * Ecore_X_Window root; Ecore_X_Randr_Output *out = NULL; Ecore_X_Randr_Crtc crtc; - + unsigned int val[4] = { 0 }; + + if (ecore_x_window_prop_card32_get + (ee->prop.window, ecore_x_atom_get("E_ZONE_GEOMETRY"), val, 4) == 4) + { + *x = (int)val[0]; *y = (int)val[1]; + *w = (int)val[2]; *h = (int)val[3]; + return; + } + root = ecore_x_window_root_get(ee->prop.window); out = ecore_x_randr_window_outputs_get(ee->prop.window, &outnum); if (!out) -- 2.7.4