comment out the applications example

This commit is contained in:
Dana Jansens 2007-05-22 20:52:42 +00:00
parent 63a6a1f053
commit a16f1374ee
3 changed files with 50 additions and 44 deletions

View file

@ -503,7 +503,8 @@
</menu> </menu>
<!-- this section is commented out.. remove this and the ending comment if you <!-- this section is commented out.. remove this and the ending comment if you
want to use it --> want to use it
<applications> <applications>
<!-- the name or the class can be set, or both. this is used to match <!-- the name or the class can be set, or both. this is used to match
windows when they appear. role can optionally be set as well, to windows when they appear. role can optionally be set as well, to

View file

@ -735,11 +735,13 @@ static ObAppSettings *client_get_settings_state(ObClient *self)
if (app->name && if (app->name &&
!g_pattern_match(app->name, strlen(self->name), self->name, NULL)) !g_pattern_match(app->name, strlen(self->name), self->name, NULL))
match = FALSE; match = FALSE;
if (app->class && else if (app->class &&
!g_pattern_match(app->class, strlen(self->class),self->class,NULL)) !g_pattern_match(app->class,
strlen(self->class), self->class, NULL))
match = FALSE; match = FALSE;
if (app->role && else if (app->role &&
!g_pattern_match(app->role, strlen(self->role), self->role, NULL)) !g_pattern_match(app->role,
strlen(self->role), self->role, NULL))
match = FALSE; match = FALSE;
if (match) { if (match) {
@ -751,7 +753,6 @@ static ObAppSettings *client_get_settings_state(ObClient *self)
} }
} }
if (settings) {
if (settings->shade != -1) if (settings->shade != -1)
self->shaded = !!settings->shade; self->shaded = !!settings->shade;
if (settings->decor != -1) if (settings->decor != -1)
@ -791,7 +792,6 @@ static ObAppSettings *client_get_settings_state(ObClient *self)
self->below = FALSE; self->below = FALSE;
self->above = TRUE; self->above = TRUE;
} }
}
return settings; return settings;
} }
@ -2957,6 +2957,10 @@ void client_iconify(ObClient *self, gboolean iconic, gboolean curdesk,
/* move up the transient chain as far as possible first */ /* move up the transient chain as far as possible first */
self = client_search_top_normal_parent(self); self = client_search_top_normal_parent(self);
client_iconify_recursive(self, iconic, curdesk, hide_animation); client_iconify_recursive(self, iconic, curdesk, hide_animation);
/* try focus the window that was de-iconified if focusNew is on */
if (!iconic && config_focus_new)
client_focus(self);
} }
} }

View file

@ -215,7 +215,6 @@ gboolean screen_annex()
(wm_supported_pos - prop_atoms_start) - 1; (wm_supported_pos - prop_atoms_start) - 1;
i = 0; i = 0;
supported = g_new(gulong, num_support); supported = g_new(gulong, num_support);
supported[i++] = prop_atoms.net_supporting_wm_check;
supported[i++] = prop_atoms.net_wm_full_placement; supported[i++] = prop_atoms.net_wm_full_placement;
supported[i++] = prop_atoms.net_current_desktop; supported[i++] = prop_atoms.net_current_desktop;
supported[i++] = prop_atoms.net_number_of_desktops; supported[i++] = prop_atoms.net_number_of_desktops;
@ -257,8 +256,6 @@ gboolean screen_annex()
supported[i++] = prop_atoms.net_wm_action_fullscreen; supported[i++] = prop_atoms.net_wm_action_fullscreen;
supported[i++] = prop_atoms.net_wm_action_change_desktop; supported[i++] = prop_atoms.net_wm_action_change_desktop;
supported[i++] = prop_atoms.net_wm_action_close; supported[i++] = prop_atoms.net_wm_action_close;
supported[i++] = prop_atoms.net_wm_action_above;
supported[i++] = prop_atoms.net_wm_action_below;
supported[i++] = prop_atoms.net_wm_state; supported[i++] = prop_atoms.net_wm_state;
supported[i++] = prop_atoms.net_wm_state_modal; supported[i++] = prop_atoms.net_wm_state_modal;
supported[i++] = prop_atoms.net_wm_state_maximized_vert; supported[i++] = prop_atoms.net_wm_state_maximized_vert;
@ -284,6 +281,10 @@ gboolean screen_annex()
supported[i++] = prop_atoms.net_wm_sync_request_counter; supported[i++] = prop_atoms.net_wm_sync_request_counter;
#endif #endif
supported[i++] = prop_atoms.net_supporting_wm_check;
supported[i++] = prop_atoms.net_wm_action_above;
supported[i++] = prop_atoms.net_wm_action_below;
supported[i++] = prop_atoms.kde_wm_change_state; supported[i++] = prop_atoms.kde_wm_change_state;
supported[i++] = prop_atoms.kde_net_wm_frame_strut; supported[i++] = prop_atoms.kde_net_wm_frame_strut;
supported[i++] = prop_atoms.kde_net_wm_window_type_override; supported[i++] = prop_atoms.kde_net_wm_window_type_override;