From fb1670bf432cea256ded01c66d1d2e0ce7837a08 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 15 Dec 2004 11:48:33 +0000 Subject: [PATCH] kill of a single client call added SVN revision: 12475 --- legacy/ecore/src/lib/ecore_x/Ecore_X.h | 1 + legacy/ecore/src/lib/ecore_x/ecore_x.c | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/legacy/ecore/src/lib/ecore_x/Ecore_X.h b/legacy/ecore/src/lib/ecore_x/Ecore_X.h index da97d7a..e8865b0 100644 --- a/legacy/ecore/src/lib/ecore_x/Ecore_X.h +++ b/legacy/ecore/src/lib/ecore_x/Ecore_X.h @@ -772,6 +772,7 @@ EAPI double ecore_x_double_click_time_get(void); EAPI void ecore_x_flush(void); EAPI void ecore_x_sync(void); EAPI void ecore_x_killall(Ecore_X_Window root); +EAPI void ecore_x_kill(Ecore_X_Window win); EAPI void ecore_x_error_handler_set(void (*func) (void *data), const void *data); EAPI void ecore_x_io_error_handler_set(void (*func) (void *data), const void *data); diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x.c b/legacy/ecore/src/lib/ecore_x/ecore_x.c index 6c56c4f..009d4b8 100644 --- a/legacy/ecore/src/lib/ecore_x/ecore_x.c +++ b/legacy/ecore/src/lib/ecore_x/ecore_x.c @@ -533,6 +533,19 @@ ecore_x_killall(Ecore_X_Window root) XSync(_ecore_x_disp, False); } +/** + * Kill a specific client + * + * You can kill a specific client woning window @p win + * + * @param win Window of the client to be killed + */ +void +ecore_x_kill(Ecore_X_Window win) +{ + XKillClient(_ecore_x_disp, win); +} + static int _ecore_x_fd_handler(void *data, Ecore_Fd_Handler *fd_handler) { -- 2.7.4