diff options
author | Elijah Newren <newren gmail com> | 2006-04-12 18:01:20 +0000 |
---|---|---|
committer | Elijah Newren <newren@src.gnome.org> | 2006-04-12 18:01:20 +0000 |
commit | 59d99fb9d12fde77d6e094e4b7a344104972a183 (patch) | |
tree | fbbd1e72c2a531adfce092ee898460e7865ae2a1 /src/metacity.schemas.in | |
parent | 4b683fdbf23434e33da7218567bdd5eecda74ebf (diff) | |
download | metacity-59d99fb9d12fde77d6e094e4b7a344104972a183.tar.gz |
Patch from Ron Yorston to add a focus_new_windows option. Default is
2006-04-12 Elijah Newren <newren gmail com>
Patch from Ron Yorston to add a focus_new_windows option. Default
is 'smart' (focus by default but normal focus-stealing-prevention
can kick in); 'strict' is current other choice (like 'smart'
except that programs launched by the terminal will not be
focused). Fixes remainder of #326159. Should also close #152004
and a bunch of others.
* src/common.h:
Add a MetaFocusNewWindows enum giving the current types allowed
* src/display.h:
Update docs on allow_terminal_deactivation to note that it is only
relevant when focus_new_windows is 'strict'
* src/prefs.c:
* src/prefs.h:
* src/metacity.schemas.in: add the new gconf key and explanation
* src/prefs.[ch] (#define KEY_FOCUS_NEW_WINDOWS, static gboolean
focus_new_windows, update_focus_new_windows, meta_prefs_init,
change_notify, meta_prefs_get_focus_new_windows,
meta_preference_to_string):
Add all the normal preference handling stuff for this new
focus-new-windows option.
* src/window.c (window_state_on_map, meta_window_set_user_time):
Don't focus windows launched from a terminal
Diffstat (limited to 'src/metacity.schemas.in')
-rw-r--r-- | src/metacity.schemas.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/metacity.schemas.in b/src/metacity.schemas.in index b2a4e61c..6bef6ae5 100644 --- a/src/metacity.schemas.in +++ b/src/metacity.schemas.in @@ -67,6 +67,23 @@ </schema> <schema> + <key>/schemas/apps/metacity/general/focus_new_windows</key> + <applyto>/apps/metacity/general/focus_new_windows</applyto> + <owner>metacity</owner> + <type>string</type> + <default>smart</default> + <locale name="C"> + <short>Control how new windows get focus</short> + <long> + This option provides additional control over how newly created + windows get focus. It has two possible values; "smart" applies + the user's normal focus mode, and "strict" results in windows + started from a terminal not being given focus. + </long> + </locale> + </schema> + + <schema> <key>/schemas/apps/metacity/general/raise_on_click</key> <applyto>/apps/metacity/general/raise_on_click</applyto> <owner>metacity</owner> |