From f8ace0826e4d545748a9f99ca382a96c4a617774 Mon Sep 17 00:00:00 2001 From: leif Date: Wed, 30 May 2012 19:16:29 +0000 Subject: [PATCH] ecore_x_randr: Add _ASK policy for new monitors. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@71565 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- ChangeLog | 3 +++ NEWS | 5 +++++ src/lib/ecore_x/Ecore_X.h | 3 ++- src/lib/ecore_x/xcb/ecore_xcb_randr.c | 2 ++ src/lib/ecore_x/xlib/ecore_x_randr_12.c | 2 ++ 5 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ed2826b..3ab9361 100644 --- a/ChangeLog +++ b/ChangeLog @@ -699,3 +699,6 @@ * Small fix to ecore-evas buffer engine on resize to make the right kind of buffer cavas (ARGB32 vs RGB32). +2012-05-30 Leif Middelschulte (T_UNIX) + + * Add ECORE_X_RANDR_OUTPUT_POLICY_ASK diff --git a/NEWS b/NEWS index 0aeebdc..e0caaa2 100644 --- a/NEWS +++ b/NEWS @@ -18,6 +18,11 @@ Fixes: - Force cancel of all running Ecore_Thread on shutdown. - Make Ecore_Thread work reliably when called without a running main loop. +Additions: + + * ecore_x: + - ECORE_X_RANDR_OUTPUT_POLICY_ASK + Ecore 1.2.0 Changes since Ecore 1.1.0: diff --git a/src/lib/ecore_x/Ecore_X.h b/src/lib/ecore_x/Ecore_X.h index 308bcc4..a616fab 100644 --- a/src/lib/ecore_x/Ecore_X.h +++ b/src/lib/ecore_x/Ecore_X.h @@ -197,7 +197,8 @@ typedef enum _Ecore_X_Randr_Output_Policy ECORE_X_RANDR_OUTPUT_POLICY_BELOW = 3, ECORE_X_RANDR_OUTPUT_POLICY_LEFT = 4, ECORE_X_RANDR_OUTPUT_POLICY_CLONE = 5, - ECORE_X_RANDR_OUTPUT_POLICY_NONE = 6 + ECORE_X_RANDR_OUTPUT_POLICY_NONE = 6, + ECORE_X_RANDR_OUTPUT_POLICY_ASK = 7 } Ecore_X_Randr_Output_Policy; typedef enum _Ecore_X_Randr_Relative_Alignment diff --git a/src/lib/ecore_x/xcb/ecore_xcb_randr.c b/src/lib/ecore_x/xcb/ecore_xcb_randr.c index c471dba..48681d0 100644 --- a/src/lib/ecore_x/xcb/ecore_xcb_randr.c +++ b/src/lib/ecore_x/xcb/ecore_xcb_randr.c @@ -1848,6 +1848,8 @@ ecore_x_randr_crtc_pos_relative_set(Ecore_X_Window root, case ECORE_X_RANDR_OUTPUT_POLICY_NONE: break; + default: + return EINA_FALSE; } if ((xn == r1.x) && (yn == r1.x)) return EINA_TRUE; diff --git a/src/lib/ecore_x/xlib/ecore_x_randr_12.c b/src/lib/ecore_x/xlib/ecore_x_randr_12.c index 82fa6b7..a1fecf8 100644 --- a/src/lib/ecore_x/xlib/ecore_x_randr_12.c +++ b/src/lib/ecore_x/xlib/ecore_x_randr_12.c @@ -1498,6 +1498,8 @@ ecore_x_randr_crtc_pos_relative_set(Ecore_X_Window root, */ case ECORE_X_RANDR_OUTPUT_POLICY_NONE: break; + default: + return EINA_FALSE; } if ((x_n == r1_geo.x) && (y_n == r1_geo.x)) return EINA_TRUE; -- 2.7.4