summaryrefslogtreecommitdiffstats
path: root/xsettings/xsettings-client.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-02-27 01:00:08 +0000
committerOwen Taylor <otaylor@redhat.com>2004-02-27 01:00:08 +0000
commitb2e928dc0788f856bcb1e67450a2a0b28962a415 (patch)
tree173a2fef95c189dc7170005492dfce1144abb578 /xsettings/xsettings-client.h
parent481e6fef65998dd376084532af878268cd45ae82 (diff)
downloadxdg-specs-b2e928dc0788f856bcb1e67450a2a0b28962a415.tar.xz
Thu Feb 26 19:55:29 2004 Owen Taylor <otaylor@redhat.com>
* xsettings-client.[ch]: Add xsettings_client_set_grab_func(), xsettings_client_set_ungrab_func() to allow users to control exactly how server grabs are done. (In case the user has a refcounted grab facility, for instance.) (Patch by Soeren Sandmann) * xsettings-client.c: Use XInternAtoms() to reduce roundtrips. * xsettings-client.c: Fix a memory leak for XGetWindowProperty() on type mismatch.
Diffstat (limited to 'xsettings/xsettings-client.h')
-rw-r--r--xsettings/xsettings-client.h28
1 files changed, 16 insertions, 12 deletions
diff --git a/xsettings/xsettings-client.h b/xsettings/xsettings-client.h
index 1b13fe3..b916eba 100644
--- a/xsettings/xsettings-client.h
+++ b/xsettings/xsettings-client.h
@@ -47,19 +47,23 @@ typedef void (*XSettingsWatchFunc) (Window window,
Bool is_start,
long mask,
void *cb_data);
+typedef void (*XSettingsGrabFunc) (Display *display);
-XSettingsClient *xsettings_client_new (Display *display,
- int screen,
- XSettingsNotifyFunc notify,
- XSettingsWatchFunc watch,
- void *cb_data);
-void xsettings_client_destroy (XSettingsClient *client);
-Bool xsettings_client_process_event (XSettingsClient *client,
- XEvent *xev);
-
-XSettingsResult xsettings_client_get_setting (XSettingsClient *client,
- const char *name,
- XSettingsSetting **setting);
+XSettingsClient *xsettings_client_new (Display *display,
+ int screen,
+ XSettingsNotifyFunc notify,
+ XSettingsWatchFunc watch,
+ void *cb_data);
+void xsettings_client_set_grab_func (XSettingsClient *client,
+ XSettingsGrabFunc grab);
+void xsettings_client_set_ungrab_func (XSettingsClient *client,
+ XSettingsGrabFunc ungrab);
+void xsettings_client_destroy (XSettingsClient *client);
+Bool xsettings_client_process_event (XSettingsClient *client,
+ XEvent *xev);
+XSettingsResult xsettings_client_get_setting (XSettingsClient *client,
+ const char *name,
+ XSettingsSetting **setting);
#ifdef __cplusplus
}