summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-02-14 12:23:51 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-02-14 12:23:51 +0800
commite636a949d482d95dcdfb024e7e697d47ea96ea2c (patch)
tree859d64df2efa3a519d97983e48f86861e68248fc
parent9001115166668e04eb06b8f08b3814be7c44a2ba (diff)
downloadcompiz-with-glib-mainloop-e636a949d482d95dcdfb024e7e697d47ea96ea2c.tar.gz
compiz-with-glib-mainloop-e636a949d482d95dcdfb024e7e697d47ea96ea2c.tar.bz2
Add definitions for different border types
-rw-r--r--gtk/window-decorator/metacity.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/gtk/window-decorator/metacity.c b/gtk/window-decorator/metacity.c
index 8f6fc93..33c8648 100644
--- a/gtk/window-decorator/metacity.c
+++ b/gtk/window-decorator/metacity.c
@@ -519,7 +519,28 @@ meta_get_decoration_geometry (decor_t *d,
MetaFrameType
meta_get_frame_type_for_win_type (WnckWindow *win)
{
- return META_FRAME_TYPE_NORMAL;
+ MetaFrameType type;
+
+ switch (wnck_window_get_window_type (win))
+ {
+ case WNCK_WINDOW_NORMAL:
+ type = META_FRAME_TYPE_NORMAL;
+ break;
+ case WNCK_WINDOW_DIALOG:
+ type = META_FRAME_TYPE_DIALOG;
+ break;
+ case WNCK_WINDOW_MENU:
+ type = META_FRAME_TYPE_MENU;
+ break;
+ case WNCK_WINDOW_UTILITY:
+ type = META_FRAME_TYPE_UTILITY;
+ break;
+ default:
+ type = META_FRAME_TYPE_LAST;
+ break;
+ }
+
+ return type;
}
void