summaryrefslogtreecommitdiff
path: root/src/lib/ecore_x
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-09-26 11:23:12 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-09-26 11:23:12 -0400
commit2f7b359183a2dd7631c669583d0038fe840bc929 (patch)
treeb8842fcc9dd09e0df9f0e404b1b8539f73af4c54 /src/lib/ecore_x
parent2bc6754d395ca645ce29359dab3be757edb28064 (diff)
ecore-x: add internal function for selecting just properties of root window
Summary: this is just a shortcut for watching properties in the case where no wm is active in the process Depends on D10012 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10013
Diffstat (limited to 'src/lib/ecore_x')
-rw-r--r--src/lib/ecore_x/ecore_x.c11
-rw-r--r--src/lib/ecore_x/ecore_x_private.h20
2 files changed, 31 insertions, 0 deletions
diff --git a/src/lib/ecore_x/ecore_x.c b/src/lib/ecore_x/ecore_x.c
index 8503add..924b416 100644
--- a/src/lib/ecore_x/ecore_x.c
+++ b/src/lib/ecore_x/ecore_x.c
@@ -1431,6 +1431,17 @@ ecore_x_window_sniff(Ecore_X_Window win)
1431 if (_ecore_xlib_sync) ecore_x_sync(); 1431 if (_ecore_xlib_sync) ecore_x_sync();
1432} 1432}
1433 1433
1434/* this is internal-only for now */
1435EAPI void
1436ecore_x_window_root_properties_select(void)
1437{
1438 LOGFN(__FILE__, __LINE__, __FUNCTION__);
1439 if (_ecore_x_window_manage_succeeded) return;
1440 EINA_SAFETY_ON_NULL_RETURN(_ecore_x_disp);
1441 XSelectInput(_ecore_x_disp, ecore_x_window_root_first_get(), PropertyChangeMask);
1442 if (_ecore_xlib_sync) ecore_x_sync();
1443}
1444
1434EAPI void 1445EAPI void
1435ecore_x_window_client_sniff(Ecore_X_Window win) 1446ecore_x_window_client_sniff(Ecore_X_Window win)
1436{ 1447{
diff --git a/src/lib/ecore_x/ecore_x_private.h b/src/lib/ecore_x/ecore_x_private.h
index 7374a0d..ce81efe 100644
--- a/src/lib/ecore_x/ecore_x_private.h
+++ b/src/lib/ecore_x/ecore_x_private.h
@@ -406,4 +406,24 @@ int _ecore_x_shutdown(void);
406#define LOGFN(fl, ln, fn) 406#define LOGFN(fl, ln, fn)
407#endif /* ifdef LOGFNS */ 407#endif /* ifdef LOGFNS */
408 408
409
410
411#ifdef EAPI
412# undef EAPI
413#endif // ifdef EAPI
414
415#ifdef __GNUC__
416# if __GNUC__ >= 4
417# define EAPI __attribute__ ((visibility("default")))
418# else // if __GNUC__ >= 4
419# define EAPI
420# endif // if __GNUC__ >= 4
421#else // ifdef __GNUC__
422# define EAPI
423#endif // ifdef __GNUC__
424EAPI void ecore_x_window_root_properties_select(void);
425#undef EAPI
426#define EAPI
427
428
409#endif /* ifndef _ECORE_X_PRIVATE_H */ 429#endif /* ifndef _ECORE_X_PRIVATE_H */