summaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-02-09 06:54:44 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-02-09 06:54:44 +0000
commit116fc5546f3ab87a6a2650aa7afa4aa5c842a9bd (patch)
tree3ddd3567dbce8ed6b996d9f85608bb934ef7154e /src/session.c
parent844a8ac13f057f235cf3044f23b23cabf10e65f7 (diff)
downloadmetacity-116fc5546f3ab87a6a2650aa7afa4aa5c842a9bd.tar.gz
metacity-116fc5546f3ab87a6a2650aa7afa4aa5c842a9bd.tar.bz2
put in some kind of distinctive frame for UTILITY, though it's ugly. Also
2002-02-09 Havoc Pennington <hp@pobox.com> * src/themes/Atlanta/metacity-theme-1.xml: put in some kind of distinctive frame for UTILITY, though it's ugly. Also put in the borderless look for maximized windows. * src/stack.c (compute_layer): put splash screen in the splash layer * src/stack.h (enum): create a splash screen layer * src/place.c (meta_window_place): center splashscreen, and fix a typo in the centering code * src/window.c (recalc_window_features): disable most features on splash screens * src/screen.c (set_supported_hint): add UTILITY and SPLASHSCREEN hints * src/window.c: add UTILITY, SPLASHSCREEN implementation * src/window.h (enum): add UTILITY, SPLASHSCREEN types * src/theme-parser.c (parse_toplevel_element): parser support for has_title attribute * src/theme.c (meta_frame_layout_get_borders): handle a has_title field in the layout, for utility windows that don't display a title (would be better to be able to shrink the title text, but that's kind of tricky to implement :-/)
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/session.c b/src/session.c
index 8a61fe9..66fa2aa 100644
--- a/src/session.c
+++ b/src/session.c
@@ -588,6 +588,12 @@ window_type_to_string (MetaWindowType type)
case META_WINDOW_MENU:
return "menu";
break;
+ case META_WINDOW_SPLASHSCREEN:
+ return "splashscreen";
+ break;
+ case META_WINDOW_UTILITY:
+ return "utility";
+ break;
}
return "";
@@ -610,6 +616,10 @@ window_type_from_string (const char *str)
return META_WINDOW_TOOLBAR;
else if (strcmp (str, "menu") == 0)
return META_WINDOW_MENU;
+ else if (strcmp (str, "utility") == 0)
+ return META_WINDOW_UTILITY;
+ else if (strcmp (str, "splashscreen") == 0)
+ return META_WINDOW_SPLASHSCREEN;
else
return META_WINDOW_NORMAL;
}