From 5a91ac04c01969b02629f9358d7e9b79682df354 Mon Sep 17 00:00:00 2001 From: devilhorns Date: Thu, 21 Jul 2011 12:09:33 +0000 Subject: [PATCH] Ecore_X: Add a couple of missing functions to the xlib engine. NB: These are mainly for systray module so that it can be engine independant in that it can just use ecore_x calls now, instead of specific xlib stuff. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@61555 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_x/xlib/ecore_x.c | 6 ++++++ src/lib/ecore_x/xlib/ecore_x_selection.c | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/lib/ecore_x/xlib/ecore_x.c b/src/lib/ecore_x/xlib/ecore_x.c index 9964c0f..94d304d 100644 --- a/src/lib/ecore_x/xlib/ecore_x.c +++ b/src/lib/ecore_x/xlib/ecore_x.c @@ -1856,6 +1856,12 @@ ecore_x_pointer_xy_get(Ecore_X_Window win, int *x, int *y) *y = wy; } /* ecore_x_pointer_xy_get */ +EAPI unsigned int +ecore_x_visual_id_get(Ecore_X_Visual visual) +{ + return XVisualIDFromVisual(visual); +} + /*****************************************************************************/ /*****************************************************************************/ /*****************************************************************************/ diff --git a/src/lib/ecore_x/xlib/ecore_x_selection.c b/src/lib/ecore_x/xlib/ecore_x_selection.c index 5d7f417..eb9cbd1 100644 --- a/src/lib/ecore_x/xlib/ecore_x_selection.c +++ b/src/lib/ecore_x/xlib/ecore_x_selection.c @@ -716,6 +716,18 @@ ecore_x_selection_parser_del(const char *target) } } /* ecore_x_selection_parser_del */ +EAPI void +ecore_x_selection_owner_set(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Time time) +{ + XSetSelectionOwner(_ecore_x_disp, atom, win, time); +} + +EAPI Ecore_X_Window +ecore_x_selection_owner_get(Ecore_X_Atom atom) +{ + return XGetSelectionOwner(_ecore_x_disp, atom); +} + /* Locate and run conversion callback for specified selection target */ void * _ecore_x_selection_parse(const char *target, void *data, int size, int format) -- 2.7.4