summaryrefslogtreecommitdiff
path: root/gtk/window-decorator/switcher.c
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-02-17 01:39:56 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-02-17 01:39:56 +0800
commit5603a1b3a35559a1208a8818ed97cdf2473839bd (patch)
tree2ae9426f9b5b853e1b4c22ae9ac5c3650f7ddd7f /gtk/window-decorator/switcher.c
parentaf4e7bc36f27b8908a150dd497752e85a8281b20 (diff)
downloadcompiz-with-glib-mainloop-5603a1b3a35559a1208a8818ed97cdf2473839bd.tar.gz
compiz-with-glib-mainloop-5603a1b3a35559a1208a8818ed97cdf2473839bd.tar.bz2
Added simple frames management system.
Right now this just keeps the frames in a private area and returns a pre-allocated frame, but it will be expanded to allow reference counting on frames and allocation on-demand
Diffstat (limited to 'gtk/window-decorator/switcher.c')
-rw-r--r--gtk/window-decorator/switcher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/window-decorator/switcher.c b/gtk/window-decorator/switcher.c
index e8d44d9..47a4a91 100644
--- a/gtk/window-decorator/switcher.c
+++ b/gtk/window-decorator/switcher.c
@@ -307,7 +307,7 @@ update_switcher_window (Window popup,
d->decorated = FALSE;
d->draw = draw_switcher_decoration;
- d->frame = &decor_frames[DECOR_FRAME_TYPE_SWITCHER];
+ d->frame = gwd_get_decor_frame (DECOR_FRAME_TYPE_SWITCHER);
decor_get_default_layout (&d->frame->window_context, width, 1, &d->border_layout);