From cb51ef97ac7f7d7400d933b6301bf7412d17f3d5 Mon Sep 17 00:00:00 2001 From: sebastid Date: Fri, 3 Jun 2005 12:05:10 +0000 Subject: [PATCH] Let STRUT_PARTIAL check STRUT on failure. SVN revision: 15085 --- legacy/ecore/src/lib/ecore_x/ecore_x_netwm.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_netwm.c b/legacy/ecore/src/lib/ecore_x/ecore_x_netwm.c index d4881bdff8..b80394be54 100644 --- a/legacy/ecore/src/lib/ecore_x/ecore_x_netwm.c +++ b/legacy/ecore/src/lib/ecore_x/ecore_x_netwm.c @@ -726,6 +726,7 @@ ecore_x_netwm_strut_partial_set(Ecore_X_Window win, int left, int right, strut[10] = bottom_start_x; strut[11] = bottom_end_x; ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_STRUT_PARTIAL, strut, 12); + ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_STRUT, strut, 4); } int @@ -739,7 +740,16 @@ ecore_x_netwm_strut_partial_get(Ecore_X_Window win, int *left, int *right, ret = ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_STRUT_PARTIAL, strut, 12); if (ret != 12) - return 0; + { + int i; + + ret = ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_STRUT, strut, 4); + if (ret != 4) + return 0; + + for (i = 4; i < 12; i++) + strut[i] = 0; + } if (left) *left = strut[0]; if (right) *right = strut[1];