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
This commit is contained in:
parent
2bc6754d39
commit
2f7b359183
|
@ -1431,6 +1431,17 @@ ecore_x_window_sniff(Ecore_X_Window win)
|
||||||
if (_ecore_xlib_sync) ecore_x_sync();
|
if (_ecore_xlib_sync) ecore_x_sync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* this is internal-only for now */
|
||||||
|
EAPI void
|
||||||
|
ecore_x_window_root_properties_select(void)
|
||||||
|
{
|
||||||
|
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||||
|
if (_ecore_x_window_manage_succeeded) return;
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN(_ecore_x_disp);
|
||||||
|
XSelectInput(_ecore_x_disp, ecore_x_window_root_first_get(), PropertyChangeMask);
|
||||||
|
if (_ecore_xlib_sync) ecore_x_sync();
|
||||||
|
}
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
ecore_x_window_client_sniff(Ecore_X_Window win)
|
ecore_x_window_client_sniff(Ecore_X_Window win)
|
||||||
{
|
{
|
||||||
|
|
|
@ -406,4 +406,24 @@ int _ecore_x_shutdown(void);
|
||||||
#define LOGFN(fl, ln, fn)
|
#define LOGFN(fl, ln, fn)
|
||||||
#endif /* ifdef LOGFNS */
|
#endif /* ifdef LOGFNS */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef EAPI
|
||||||
|
# undef EAPI
|
||||||
|
#endif // ifdef EAPI
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
# if __GNUC__ >= 4
|
||||||
|
# define EAPI __attribute__ ((visibility("default")))
|
||||||
|
# else // if __GNUC__ >= 4
|
||||||
|
# define EAPI
|
||||||
|
# endif // if __GNUC__ >= 4
|
||||||
|
#else // ifdef __GNUC__
|
||||||
|
# define EAPI
|
||||||
|
#endif // ifdef __GNUC__
|
||||||
|
EAPI void ecore_x_window_root_properties_select(void);
|
||||||
|
#undef EAPI
|
||||||
|
#define EAPI
|
||||||
|
|
||||||
|
|
||||||
#endif /* ifndef _ECORE_X_PRIVATE_H */
|
#endif /* ifndef _ECORE_X_PRIVATE_H */
|
||||||
|
|
Loading…
Reference in New Issue