From f596b543b6e748af433fcc503a1341a1022fea53 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Thu, 13 Jan 2005 07:13:06 +0000 Subject: [PATCH] netwm frame hint SVN revision: 12948 --- legacy/ecore/src/lib/ecore_x/Ecore_X.h | 3 ++- legacy/ecore/src/lib/ecore_x/ecore_x_netwm.c | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/legacy/ecore/src/lib/ecore_x/Ecore_X.h b/legacy/ecore/src/lib/ecore_x/Ecore_X.h index f7da147..4d3d62d 100644 --- a/legacy/ecore/src/lib/ecore_x/Ecore_X.h +++ b/legacy/ecore/src/lib/ecore_x/Ecore_X.h @@ -1098,7 +1098,8 @@ EAPI int ecore_x_client_message8_send(Ecore_X_Window win, Ecore_X_A EAPI int ecore_x_netwm_opacity_get(Ecore_X_Window win, unsigned int *opacity); EAPI void ecore_x_netwm_window_state_set(Ecore_X_Window win, Ecore_X_Window_State state, int on); EAPI int ecore_x_netwm_window_state_isset(Ecore_X_Window win, Ecore_X_Window_State state); - + EAPI void ecore_x_netwm_frame_size_set(Ecore_X_Window win, int fl, int fr, int ft, int fb); + EAPI int ecore_x_xinerama_screen_count_get(void); EAPI int ecore_x_xinerama_screen_geometry_get(int screen, int *x, int *y, int *w, int *h); 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 a4f7e1f..d83341b 100644 --- a/legacy/ecore/src/lib/ecore_x/ecore_x_netwm.c +++ b/legacy/ecore/src/lib/ecore_x/ecore_x_netwm.c @@ -238,6 +238,8 @@ Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_BELOW = 0; Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_OPACITY = 0; +Ecore_X_Atom ECORE_X_ATOM_NET_FRAME_EXTENTS = 0; + void ecore_x_netwm_init(void) { @@ -307,6 +309,8 @@ ecore_x_netwm_init(void) ECORE_X_ATOM_NET_WM_STATE_BELOW = _ATOM_GET("_NET_WM_STATE_BELOW"); ECORE_X_ATOM_NET_WM_WINDOW_OPACITY = _ATOM_GET("_NET_WM_WINDOW_OPACITY"); + + ECORE_X_ATOM_NET_FRAME_EXTENTS = _ATOM_GET("_NET_FRAME_EXTENTS"); } /* @@ -503,6 +507,18 @@ ecore_x_netwm_visible_icon_name_get(Ecore_X_Window win) } void +ecore_x_netwm_frame_size_set(Ecore_X_Window win, int fl, int fr, int ft, int fb) +{ + int frames[4]; + + frames[0] = fl; + frames[1] = fr; + frames[2] = ft; + frames[3] = fb; + ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_FRAME_EXTENTS, frames, 4); +} + +void ecore_x_netwm_desktop_set(Ecore_X_Window win, unsigned int desk) { ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_DESKTOP, &desk, 1); -- 2.7.4