diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-07-11 13:25:08 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-07-11 13:25:08 +0000 |
commit | 8ce054b21ba2058470018a127f0bcf3dc32c1f87 (patch) | |
tree | a37f32f6003cbdc5ee65a71fb9416f43fad2fe54 /src/screen.c | |
parent | 7335b44d3e200924f58860967ea1eaa13bd822d4 (diff) | |
download | metacity-8ce054b21ba2058470018a127f0bcf3dc32c1f87.tar.gz |
React to cursor theme changes: (#308106)
2005-07-11 Matthias Clasen <mclasen@redhat.com>
React to cursor theme changes: (#308106)
* src/prefs.h:
* src/prefs.c: Expose the GConf keys for cursor theme
and size as preferences META_PREF_CURSOR_THEME and
META_PREF_CURSOR_SIZE with getters meta_prefs_get_cursor_theme()
and meta_prefs_get_cursor_size().
* src/display.c (meta_display_open): Initialize the cursor
theme and size.
* src/display.h:
* src/display.c (meta_display_set_cursor_theme): New function
to change the cursor theme and update all cursors.
* src/screen.h
* src/screen.c (meta_screen_update_cursor): New function to
refesh the root cursor of a screen.
* src/main.c (prefs_changed_callback): Update the cursor
theme when the cursor preferences change.
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c index 30b79aad..04b453a1 100644 --- a/src/screen.c +++ b/src/screen.c @@ -1153,6 +1153,18 @@ meta_screen_set_cursor (MetaScreen *screen, } void +meta_screen_update_cursor (MetaScreen *screen) +{ + Cursor xcursor; + + xcursor = meta_display_create_x_cursor (screen->display, + screen->current_cursor); + XDefineCursor (screen->display->xdisplay, screen->xroot, xcursor); + XFlush (screen->display->xdisplay); + XFreeCursor (screen->display->xdisplay, xcursor); +} + +void meta_screen_ensure_tab_popup (MetaScreen *screen, MetaTabList type) { |