From 52df880f32fe18172fa233f457b25c84ee5b630b Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Tue, 10 Jan 2006 19:35:03 +0000 Subject: Add a raise on click option, basically only because all the major distros 2006-01-10 Elijah Newren 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 --- src/metacity.schemas.in | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/metacity.schemas.in') 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 @@ -61,6 +61,30 @@ + + /schemas/apps/metacity/general/raise_on_click + /apps/metacity/general/raise_on_click + metacity + bool + true + + Whether raising should be a side-effect of other user + interactions + + 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. + + + + /schemas/apps/metacity/general/action_double_click_titlebar /apps/metacity/general/action_double_click_titlebar -- cgit v1.2.1