diff options
author | Elijah Newren <newren@gmail.com> | 2006-01-10 19:35:03 +0000 |
---|---|---|
committer | Elijah Newren <newren@src.gnome.org> | 2006-01-10 19:35:03 +0000 |
commit | 52df880f32fe18172fa233f457b25c84ee5b630b (patch) | |
tree | 7d861f12803c3fdf4c676c101f84b8fbec8823f1 /src/metacity.schemas.in | |
parent | f6270596debe2062dfdaae8dd9e328e9519c3c44 (diff) | |
download | metacity-52df880f32fe18172fa233f457b25c84ee5b630b.tar.gz |
Add a raise on click option, basically only because all the major distros
2006-01-10 Elijah Newren <newren@gmail.com>
Add a raise on click option, basically only because all the major
distros are patching it in anyway. See #326156.
* src/metacity.schemas.in: add the new gconf key and explanation
* src/prefs.[ch] (#define KEY_RAISE_ON_CLICK, static gboolean
raise_on_click, update_raise_on_click, meta_prefs_init,
change_notify, meta_prefs_get_raise_on_click,
meta_preference_to_string):
Add all the normal preference handling stuff for this new
raise-on-click option.
* src/core.c (meta_core_show_window_menu):
* src/display.c (event_callback, meta_display_begin_grab_op):
* src/window.c (window_activate, meta_window_configure_request, ):
Only raise the window if in raise_on_click mode.
* src/display.c (meta_display_begin_grab_op,
meta_display_end_grab_op, meta_display_check_threshold_reached):
* src/display.h (struct MetaDisplay):
* src/window.c (meta_window_handle_mouse_grab_op_event):
if not in raise-on-click mode only raise on button release if the
click didn't start a move or resize operation; needs a few extra
MetaDisplay fields to handle this
* src/core.c (meta_core_user_lower_and_unfocus):
no need to do the MRU shuffling if not maintaining the stacking
order == MRU order invariant
* src/frames.c (meta_frames_button_press_event):
* src/window.c (meta_window_begin_grab_op):
remove an unneeded window raising that is already handled elsewhere
Diffstat (limited to 'src/metacity.schemas.in')
-rw-r--r-- | src/metacity.schemas.in | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/metacity.schemas.in b/src/metacity.schemas.in index 337b1ae5..bc31785b 100644 --- a/src/metacity.schemas.in +++ b/src/metacity.schemas.in @@ -62,6 +62,30 @@ </schema> <schema> + <key>/schemas/apps/metacity/general/raise_on_click</key> + <applyto>/apps/metacity/general/raise_on_click</applyto> + <owner>metacity</owner> + <type>bool</type> + <default>true</default> + <locale name="C"> + <short>Whether raising should be a side-effect of other user + interactions</short> + <long> + Many actions (e.g. clicking in the client area, moving or + resizing the window) normally raise the window as a side-effect. + Set this option to false to decouple raising from other user + interactions. When false, windows can still be raised by an + alt-left-click anywhere on the window or a normal click on the + window decorations (assuming such clicks aren't used to start a + move or resize operation). Special messages, such as activation + requests from pagers, may also raise windows when this option is + false. This option is currently disabled in click-to-focus + mode. + </long> + </locale> + </schema> + + <schema> <key>/schemas/apps/metacity/general/action_double_click_titlebar</key> <applyto>/apps/metacity/general/action_double_click_titlebar</applyto> <owner>metacity</owner> |