|
marco 1.29.1
Window manager
|
#include <config.h>#include <glib/gi18n-lib.h>#include "keybindings.h"#include "workspace.h"#include "errors.h"#include "edge-resistance.h"#include "ui.h"#include "frame-private.h"#include "place.h"#include "prefs.h"#include "effects.h"#include "util.h"#include <gio/gio.h>#include <X11/keysym.h>#include <string.h>#include <stdio.h>#include <stdlib.h>#include "all-keybindings.h"Data Structures | |
| struct | MetaKeyHandler |
| struct | _MetaKeyBinding |
Macros | |
| #define | _GNU_SOURCE |
| #define | _XOPEN_SOURCE /* for putenv() */ |
| #define | keybind(name, handler, param, flags) |
| #define | keybind(name, handler, param, flags) { #name, handler, param, flags }, |
| #define | SMALL_INCREMENT 1 |
| #define | NORMAL_INCREMENT 10 |
| #define | SMALL_INCREMENT 1 |
| #define | NORMAL_INCREMENT 10 |
| #define | RENAME_WORKSPACE_BUFSIZE 512 |
Typedefs | |
| typedef void(* | MetaKeyHandlerFunc) (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
Functions | |
| static void | handle_workspace_switch_or_move (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding, gboolean is_move) |
| static gboolean | process_mouse_move_resize_grab (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, KeySym keysym) |
| static gboolean | process_keyboard_move_grab (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, KeySym keysym) |
| static gboolean | process_keyboard_resize_grab (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, KeySym keysym) |
| static gboolean | process_tab_grab (MetaDisplay *display, MetaScreen *screen, XEvent *event, KeySym keysym) |
| static gboolean | process_workspace_switch_grab (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, KeySym keysym) |
| static void | regrab_key_bindings (MetaDisplay *display) |
| static void | reload_keymap (MetaDisplay *display) |
| static void | reload_modmap (MetaDisplay *display) |
| static void | reload_keycodes (MetaDisplay *display) |
| static void | reload_modifiers (MetaDisplay *display) |
| static int | count_bindings (const MetaKeyPref *prefs, int n_prefs) |
| static const MetaKeyHandler * | find_handler (const MetaKeyHandler *handlers, const char *name) |
| static void | rebuild_binding_table (MetaDisplay *display, MetaKeyBinding **bindings_p, int *n_bindings_p, const MetaKeyPref *prefs, int n_prefs) |
| static void | rebuild_key_binding_table (MetaDisplay *display) |
| static MetaKeyBindingAction | display_get_keybinding_action (MetaDisplay *display, unsigned int keysym, unsigned int keycode, unsigned long mask) |
| void | meta_display_process_mapping_event (MetaDisplay *display, XEvent *event) |
| static void | bindings_changed_callback (MetaPreference pref, void *data) |
| void | meta_display_init_keys (MetaDisplay *display) |
| void | meta_display_shutdown_keys (MetaDisplay *display) |
| static const char * | keysym_name (int keysym) |
| static void | meta_change_keygrab (MetaDisplay *display, Window xwindow, gboolean grab, int keysym, unsigned int keycode, int modmask) |
| static void | meta_grab_key (MetaDisplay *display, Window xwindow, int keysym, unsigned int keycode, int modmask) |
| static void | grab_keys (MetaKeyBinding *bindings, int n_bindings, MetaDisplay *display, Window xwindow, gboolean binding_per_window) |
| static void | ungrab_all_keys (MetaDisplay *display, Window xwindow) |
| void | meta_screen_grab_keys (MetaScreen *screen) |
| void | meta_screen_ungrab_keys (MetaScreen *screen) |
| void | meta_window_grab_keys (MetaWindow *window) |
| void | meta_window_ungrab_keys (MetaWindow *window) |
| static gboolean | grab_keyboard (MetaDisplay *display, Window xwindow, guint32 timestamp) |
| static void | ungrab_keyboard (MetaDisplay *display, guint32 timestamp) |
| gboolean | meta_screen_grab_all_keys (MetaScreen *screen, guint32 timestamp) |
| void | meta_screen_ungrab_all_keys (MetaScreen *screen, guint32 timestamp) |
| gboolean | meta_window_grab_all_keys (MetaWindow *window, guint32 timestamp) |
| void | meta_window_ungrab_all_keys (MetaWindow *window, guint32 timestamp) |
| static gboolean | is_modifier (MetaDisplay *display, unsigned int keycode) |
| static gboolean | is_specific_modifier (MetaDisplay *display, unsigned int keycode, unsigned int mask) |
| static unsigned int | get_primary_modifier (MetaDisplay *display, unsigned int entire_binding_mask) |
| static gboolean | keycode_is_primary_modifier (MetaDisplay *display, unsigned int keycode, unsigned int entire_binding_mask) |
| static gboolean | primary_modifier_still_pressed (MetaDisplay *display, unsigned int entire_binding_mask) |
| static gboolean | process_event (MetaKeyBinding *bindings, int n_bindings, MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, gboolean on_window) |
| void | meta_display_process_key_event (MetaDisplay *display, MetaWindow *window, XEvent *event) |
| static gboolean | process_keyboard_resize_grab_op_change (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, KeySym keysym) |
| static gboolean | end_keyboard_grab (MetaDisplay *display, unsigned int keycode) |
| static void | handle_switch_to_workspace (MetaDisplay *display, MetaScreen *screen, MetaWindow *event_window, XEvent *event, MetaKeyBinding *binding) |
| static void | error_on_command (int command_index, const char *command, const char *message, const char *screen_name, guint32 timestamp) |
| static gboolean | meta_spawn_command_line_async_on_screen (const gchar *command_line, MetaScreen *screen, GError **error) |
| static void | handle_run_command (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_maximize_vertically (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_maximize_horizontally (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_move_to_corner_backend (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, gboolean xchange, gboolean ychange, gboolean to_right, gboolean to_bottom) |
| static void | handle_move_to_corner_nw (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_move_to_corner_ne (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_move_to_corner_sw (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_move_to_corner_se (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_move_to_side_n (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_move_to_side_s (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_move_to_side_e (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_move_to_side_w (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_move_to_center (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_move_to_monitor (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_show_desktop (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_panel (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_activate_window_menu (MetaDisplay *display, MetaScreen *screen, MetaWindow *event_window, XEvent *event, MetaKeyBinding *binding) |
| static MetaGrabOp | tab_op_from_tab_type (MetaTabList type) |
| static MetaGrabOp | cycle_op_from_tab_type (MetaTabList type) |
| static void | do_choose_window (MetaDisplay *display, MetaScreen *screen, MetaWindow *event_window, XEvent *event, MetaKeyBinding *binding, gboolean backward, gboolean show_popup) |
| static void | handle_switch (MetaDisplay *display, MetaScreen *screen, MetaWindow *event_window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_cycle (MetaDisplay *display, MetaScreen *screen, MetaWindow *event_window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_toggle_fullscreen (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_toggle_above (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_toggle_tiled (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_toggle_maximized (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_maximize (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_unmaximize (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_toggle_shaded (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_close (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_minimize (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_begin_move (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_begin_resize (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_toggle_on_all_workspaces (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_move_to_workspace (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_raise_or_lower (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_raise (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_lower (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static void | handle_set_spew_mark (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| void | meta_set_keybindings_disabled (gboolean setting) |
| static void | handle_run_terminal (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
| static gboolean | handle_rename_workspace_callback (GIOChannel *ioc, GIOCondition cond, gpointer data) |
| static void | handle_rename_workspace (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
Variables | |
| static gboolean | all_bindings_disabled = FALSE |
| static const MetaKeyHandler | key_handlers [] |
| static gboolean | already_displaying_rename_workspace = FALSE |
| #define _GNU_SOURCE |
| #define _XOPEN_SOURCE /* for putenv() */ |
| #define keybind | ( | name, | |
| handler, | |||
| param, | |||
| flags | |||
| ) |
| #define keybind | ( | name, | |
| handler, | |||
| param, | |||
| flags | |||
| ) | { #name, handler, param, flags }, |
| #define NORMAL_INCREMENT 10 |
| #define NORMAL_INCREMENT 10 |
| #define RENAME_WORKSPACE_BUFSIZE 512 |
| #define SMALL_INCREMENT 1 |
| #define SMALL_INCREMENT 1 |
| typedef void(* MetaKeyHandlerFunc) (MetaDisplay *display, MetaScreen *screen, MetaWindow *window, XEvent *event, MetaKeyBinding *binding) |
|
static |
References META_PREF_KEYBINDINGS, rebuild_key_binding_table(), regrab_key_bindings(), reload_keycodes(), and reload_modifiers().
Referenced by meta_display_init_keys(), and meta_display_shutdown_keys().
|
static |
References MetaKeyPref::bindings, MetaKeyCombo::keycode, MetaKeyCombo::keysym, META_VIRTUAL_SHIFT_MASK, and MetaKeyCombo::modifiers.
Referenced by rebuild_binding_table().
|
static |
References META_GRAB_OP_KEYBOARD_ESCAPING_DOCK, META_GRAB_OP_KEYBOARD_ESCAPING_GROUP, META_GRAB_OP_KEYBOARD_ESCAPING_NORMAL, META_GRAB_OP_KEYBOARD_ESCAPING_NORMAL_ALL_WORKSPACES, META_TAB_LIST_DOCKS, META_TAB_LIST_GROUP, META_TAB_LIST_NORMAL, and META_TAB_LIST_NORMAL_ALL_WORKSPACES.
Referenced by do_choose_window().
|
static |
References _MetaDisplay::key_bindings, _MetaKeyBinding::keycode, _MetaKeyBinding::keysym, _MetaKeyBinding::mask, META_KEYBINDING_ACTION_NONE, meta_prefs_get_keybinding_action(), _MetaDisplay::n_key_bindings, and _MetaKeyBinding::name.
Referenced by process_tab_grab(), and process_workspace_switch_grab().
|
static |
References cycle_op_from_tab_type(), MetaKeyHandler::data, _MetaWindow::desc, FALSE, _MetaKeyBinding::handler, _MetaKeyBinding::mask, META_DEBUG_FOCUS, META_DEBUG_KEYBINDINGS, meta_display_begin_grab_op(), meta_display_end_grab_op(), meta_display_get_tab_current(), meta_display_get_tab_next(), meta_ui_tab_popup_select(), meta_ui_tab_popup_set_showing(), meta_window_activate(), meta_window_raise(), meta_window_unminimize(), _MetaWindow::minimized, _MetaDisplay::mouse_mode, NULL, primary_modifier_still_pressed(), screen, tab_op_from_tab_type(), _MetaWindow::tab_unminimized, TRUE, and _MetaWindow::xwindow.
Referenced by handle_cycle(), and handle_switch().
|
static |
References FALSE, get_primary_modifier(), _MetaDisplay::grab_mask, keycode_is_primary_modifier(), TRUE, and _MetaDisplay::xdisplay.
Referenced by process_tab_grab(), and process_workspace_switch_grab().
|
static |
References _, meta_show_dialog(), meta_warning(), and NULL.
Referenced by handle_run_command(), and handle_run_terminal().
|
static |
References MetaKeyHandler::name, and NULL.
Referenced by rebuild_binding_table().
|
static |
Referenced by end_keyboard_grab(), keycode_is_primary_modifier(), and primary_modifier_still_pressed().
|
static |
References FALSE, META_DEBUG_KEYBINDINGS, meta_error_trap_pop_with_return(), meta_error_trap_push(), TRUE, and _MetaDisplay::xdisplay.
Referenced by meta_screen_grab_all_keys(), and meta_window_grab_all_keys().
|
static |
References BINDING_PER_WINDOW, FALSE, _MetaKeyBinding::keycode, meta_error_trap_pop(), meta_error_trap_push(), meta_grab_key(), and NULL.
Referenced by meta_screen_grab_keys(), and meta_window_grab_keys().
|
static |
References _MetaDisplay::focus_window, META_UI_DIRECTION_RTL, meta_ui_get_direction(), meta_window_get_position(), meta_window_show_menu(), _MetaWindow::rect, and _MetaRectangle::width.
|
static |
References FALSE, _MetaWindow::has_move_func, META_GRAB_OP_KEYBOARD_MOVING, and meta_window_begin_grab_op().
|
static |
References FALSE, _MetaWindow::has_resize_func, META_GRAB_OP_KEYBOARD_RESIZING_UNKNOWN, and meta_window_begin_grab_op().
|
static |
References _MetaWindow::has_close_func, and meta_window_delete().
|
static |
References BINDING_IS_REVERSED, do_choose_window(), FALSE, MetaKeyHandler::flags, _MetaKeyBinding::handler, and screen.
|
static |
|
static |
References _MetaWindow::has_maximize_func, META_MAXIMIZE_HORIZONTAL, META_MAXIMIZE_VERTICAL, and meta_window_maximize().
|
static |
References _MetaWindow::has_resize_func, _MetaWindow::maximized_horizontally, META_MAXIMIZE_HORIZONTAL, meta_window_maximize(), and meta_window_unmaximize().
|
static |
References _MetaWindow::has_resize_func, _MetaWindow::maximized_vertically, META_MAXIMIZE_VERTICAL, meta_window_maximize(), and meta_window_unmaximize().
|
static |
References _MetaWindow::has_minimize_func, and meta_window_minimize().
|
static |
References center_rect_in_area(), _MetaWindow::frame, _MetaRectangle::height, meta_frame_calc_borders(), meta_screen_get_xinerama_for_window(), meta_window_get_outer_rect(), meta_window_get_work_area_for_xinerama(), meta_window_move_resize(), _MetaXineramaScreenInfo::number, _MetaWindow::rect, screen, TRUE, _MetaFrameBorders::visible, _MetaRectangle::width, _MetaRectangle::x, and _MetaRectangle::y.
|
static |
References _MetaRectangle::height, meta_window_get_outer_rect(), meta_window_get_position(), meta_window_get_work_area_all_xineramas(), meta_window_move_resize(), _MetaWindow::rect, TRUE, _MetaRectangle::width, _MetaRectangle::x, and _MetaRectangle::y.
Referenced by handle_move_to_corner_ne(), handle_move_to_corner_nw(), handle_move_to_corner_se(), handle_move_to_corner_sw(), handle_move_to_side_e(), handle_move_to_side_n(), handle_move_to_side_s(), and handle_move_to_side_w().
|
static |
References FALSE, handle_move_to_corner_backend(), screen, and TRUE.
|
static |
References FALSE, handle_move_to_corner_backend(), screen, and TRUE.
|
static |
References handle_move_to_corner_backend(), screen, and TRUE.
|
static |
References FALSE, handle_move_to_corner_backend(), screen, and TRUE.
|
static |
References MetaKeyHandler::data, _MetaKeyBinding::handler, meta_screen_get_xinerama_for_window(), meta_screen_get_xinerama_neighbor(), meta_window_move_to_monitor(), NULL, _MetaXineramaScreenInfo::number, and screen.
|
static |
References FALSE, handle_move_to_corner_backend(), screen, and TRUE.
|
static |
References FALSE, handle_move_to_corner_backend(), screen, and TRUE.
|
static |
References FALSE, handle_move_to_corner_backend(), screen, and TRUE.
|
static |
References FALSE, handle_move_to_corner_backend(), screen, and TRUE.
|
static |
References _MetaWindow::always_sticky, MetaKeyHandler::data, handle_workspace_switch_or_move(), _MetaKeyBinding::handler, meta_screen_get_workspace_by_index(), meta_window_change_workspace(), screen, and TRUE.
|
static |
References MetaKeyHandler::data, FALSE, _MetaKeyBinding::handler, META_DEBUG_KEYBINDINGS, meta_error_trap_pop(), meta_error_trap_push(), META_KEYBINDING_ACTION_PANEL_MAIN_MENU, META_KEYBINDING_ACTION_PANEL_RUN_DIALOG, _MetaDisplay::mouse_mode, screen, and _MetaDisplay::xdisplay.
|
static |
|
static |
References _MetaWindow::mapped, meta_rectangle_intersect(), meta_stack_get_above(), meta_stack_get_top(), meta_window_get_outer_rect(), meta_window_lower(), meta_window_raise(), NULL, _MetaWindow::screen, _MetaScreen::stack, and TRUE.
|
static |
References _, already_displaying_rename_workspace, handle_rename_workspace_callback(), META_DEBUG_KEYBINDINGS, meta_prefs_get_workspace_name(), meta_show_entry_dialog(), meta_workspace_index(), screen, and TRUE.
|
static |
References already_displaying_rename_workspace, FALSE, META_DEBUG_KEYBINDINGS, meta_prefs_change_workspace_name(), meta_warning(), NULL, RENAME_WORKSPACE_BUFSIZE, and TRUE.
Referenced by handle_rename_workspace().
|
static |
References _, AREA_SCREENSHOT_COMMAND_IDX, MetaKeyHandler::data, error_on_command(), _MetaKeyBinding::handler, META_DEBUG_KEYBINDINGS, meta_prefs_get_command(), meta_spawn_command_line_async_on_screen(), NULL, screen, SCREENSHOT_COMMAND_IDX, and ungrab_keyboard().
|
static |
References _, error_on_command(), META_DEBUG_KEYBINDINGS, meta_prefs_get_terminal_command(), meta_spawn_command_line_async_on_screen(), NULL, and screen.
|
static |
|
static |
References meta_screen_show_desktop(), meta_screen_unshow_desktop(), meta_workspace_focus_default_window(), NULL, and screen.
|
static |
References BINDING_IS_REVERSED, do_choose_window(), MetaKeyHandler::flags, _MetaKeyBinding::handler, screen, and TRUE.
|
static |
References MetaKeyHandler::data, FALSE, handle_workspace_switch_or_move(), _MetaKeyBinding::handler, META_MOTION_PREV, meta_screen_get_workspace_by_index(), meta_workspace_activate(), and screen.
|
static |
References meta_window_make_above(), meta_window_unmake_above(), and _MetaWindow::wm_state_above.
|
static |
References _MetaWindow::fullscreen, _MetaWindow::has_fullscreen_func, meta_window_make_fullscreen(), and meta_window_unmake_fullscreen().
|
static |
References _MetaWindow::has_maximize_func, META_MAXIMIZE_HORIZONTAL, META_MAXIMIZE_VERTICAL, meta_window_maximize(), META_WINDOW_MAXIMIZED, and meta_window_unmaximize().
|
static |
References meta_window_stick(), meta_window_unstick(), and _MetaWindow::on_all_workspaces.
|
static |
References _MetaWindow::has_shade_func, meta_window_shade(), meta_window_unshade(), and _MetaWindow::shaded.
|
static |
References MetaKeyHandler::data, FALSE, _MetaKeyBinding::handler, _MetaWindow::maximized_horizontally, _MetaWindow::maximized_vertically, meta_prefs_get_allow_tile_cycling(), meta_screen_get_xinerama_for_window(), META_TILE_CYCLE_100, META_TILE_CYCLE_25, META_TILE_CYCLE_33, META_TILE_CYCLE_50, META_TILE_CYCLE_66, META_TILE_CYCLE_75, META_TILE_CYCLE_NONE, META_TILE_NONE, meta_window_can_tile(), META_WINDOW_MAXIMIZED, meta_window_tile(), META_WINDOW_TILED, meta_window_untile(), _MetaXineramaScreenInfo::number, _MetaWindow::saved_maximize, _MetaWindow::screen, _MetaWindow::tile_cycle, _MetaWindow::tile_mode, _MetaWindow::tile_monitor_number, and _MetaWindow::tile_resized.
|
static |
References _MetaWindow::maximized_horizontally, _MetaWindow::maximized_vertically, META_MAXIMIZE_HORIZONTAL, META_MAXIMIZE_VERTICAL, META_WINDOW_CORNER_TILED, and meta_window_unmaximize().
|
static |
References MetaKeyHandler::data, _MetaScreen::display, FALSE, _MetaKeyBinding::handler, _MetaDisplay::ignored_modifier_mask, META_DEBUG_FOCUS, META_DEBUG_KEYBINDINGS, meta_display_begin_grab_op(), meta_display_end_grab_op(), META_GRAB_OP_KEYBOARD_WORKSPACE_MOVING, META_GRAB_OP_KEYBOARD_WORKSPACE_SWITCHING, meta_screen_get_n_workspaces(), meta_ui_tab_popup_select(), meta_ui_tab_popup_set_showing(), meta_window_change_workspace(), meta_workspace_activate(), meta_workspace_activate_with_focus(), meta_workspace_get_neighbor(), _MetaDisplay::mouse_mode, NULL, primary_modifier_still_pressed(), _MetaWorkspace::screen, screen, and TRUE.
Referenced by handle_move_to_workspace(), and handle_switch_to_workspace().
|
static |
References FALSE, _MetaDisplay::modmap, and TRUE.
Referenced by process_keyboard_move_grab(), process_keyboard_resize_grab(), process_tab_grab(), and process_workspace_switch_grab().
|
static |
References FALSE, META_DEBUG_KEYBINDINGS, _MetaDisplay::modmap, and TRUE.
Referenced by keycode_is_primary_modifier().
|
static |
References FALSE, get_primary_modifier(), is_specific_modifier(), and META_DEBUG_KEYBINDINGS.
Referenced by end_keyboard_grab().
|
static |
References NULL.
Referenced by meta_change_keygrab().
|
static |
References _, FALSE, _MetaDisplay::ignored_modifier_mask, keysym_name(), META_DEBUG_KEYBINDINGS, meta_error_trap_pop(), meta_error_trap_pop_with_return(), meta_error_trap_push(), meta_is_debugging(), meta_warning(), and _MetaDisplay::xdisplay.
Referenced by meta_grab_key().
| void meta_display_init_keys | ( | MetaDisplay * | display | ) |
References bindings_changed_callback(), _MetaDisplay::hyper_mask, _MetaDisplay::ignored_modifier_mask, _MetaDisplay::key_bindings, _MetaDisplay::keymap, _MetaDisplay::keysyms_per_keycode, _MetaDisplay::max_keycode, META_DEBUG_KEYBINDINGS, _MetaDisplay::meta_mask, meta_prefs_add_listener(), _MetaDisplay::min_keycode, _MetaDisplay::modmap, _MetaDisplay::n_key_bindings, NULL, _MetaDisplay::num_lock_mask, rebuild_key_binding_table(), reload_keycodes(), reload_keymap(), reload_modifiers(), reload_modmap(), _MetaDisplay::scroll_lock_mask, _MetaDisplay::super_mask, and _MetaDisplay::xdisplay.
Referenced by meta_display_open().
| void meta_display_process_key_event | ( | MetaDisplay * | display, |
| MetaWindow * | window, | ||
| XEvent * | event | ||
| ) |
References all_bindings_disabled, _MetaWindow::all_keys_grabbed, _MetaWindow::desc, _MetaDisplay::grab_op, _MetaDisplay::grab_screen, _MetaDisplay::grab_window, _MetaDisplay::key_bindings, META_DEBUG_KEYBINDINGS, meta_display_end_grab_op(), meta_display_lookup_x_window(), meta_display_screen_for_root(), meta_display_screen_for_xwindow(), META_GRAB_OP_KEYBOARD_ESCAPING_DOCK, META_GRAB_OP_KEYBOARD_ESCAPING_GROUP, META_GRAB_OP_KEYBOARD_ESCAPING_NORMAL, META_GRAB_OP_KEYBOARD_ESCAPING_NORMAL_ALL_WORKSPACES, META_GRAB_OP_KEYBOARD_MOVING, META_GRAB_OP_KEYBOARD_RESIZING_E, META_GRAB_OP_KEYBOARD_RESIZING_N, META_GRAB_OP_KEYBOARD_RESIZING_NE, META_GRAB_OP_KEYBOARD_RESIZING_NW, META_GRAB_OP_KEYBOARD_RESIZING_S, META_GRAB_OP_KEYBOARD_RESIZING_SE, META_GRAB_OP_KEYBOARD_RESIZING_SW, META_GRAB_OP_KEYBOARD_RESIZING_UNKNOWN, META_GRAB_OP_KEYBOARD_RESIZING_W, META_GRAB_OP_KEYBOARD_TABBING_DOCK, META_GRAB_OP_KEYBOARD_TABBING_GROUP, META_GRAB_OP_KEYBOARD_TABBING_NORMAL, META_GRAB_OP_KEYBOARD_TABBING_NORMAL_ALL_WORKSPACES, META_GRAB_OP_KEYBOARD_WORKSPACE_MOVING, META_GRAB_OP_KEYBOARD_WORKSPACE_SWITCHING, META_GRAB_OP_MOVING, META_GRAB_OP_NONE, META_GRAB_OP_RESIZING_E, META_GRAB_OP_RESIZING_N, META_GRAB_OP_RESIZING_NE, META_GRAB_OP_RESIZING_NW, META_GRAB_OP_RESIZING_S, META_GRAB_OP_RESIZING_SE, META_GRAB_OP_RESIZING_SW, META_GRAB_OP_RESIZING_W, meta_ui_window_is_widget(), _MetaDisplay::n_key_bindings, NULL, process_event(), process_keyboard_move_grab(), process_keyboard_resize_grab(), process_mouse_move_resize_grab(), process_tab_grab(), process_workspace_switch_grab(), screen, TRUE, and _MetaDisplay::xdisplay.
Referenced by event_callback().
| void meta_display_process_mapping_event | ( | MetaDisplay * | display, |
| XEvent * | event | ||
| ) |
References FALSE, META_DEBUG_KEYBINDINGS, regrab_key_bindings(), reload_keycodes(), reload_keymap(), reload_modifiers(), reload_modmap(), and TRUE.
Referenced by event_callback().
| void meta_display_shutdown_keys | ( | MetaDisplay * | display | ) |
References bindings_changed_callback(), _MetaDisplay::key_bindings, _MetaDisplay::keymap, meta_prefs_remove_listener(), meta_XFree, and _MetaDisplay::modmap.
Referenced by meta_display_close().
|
static |
References meta_change_keygrab(), and TRUE.
Referenced by grab_keys().
| gboolean meta_screen_grab_all_keys | ( | MetaScreen * | screen, |
| guint32 | timestamp | ||
| ) |
References FALSE, grab_keyboard(), META_DEBUG_KEYBINDINGS, meta_screen_grab_keys(), meta_screen_ungrab_keys(), screen, and TRUE.
Referenced by meta_display_begin_grab_op().
| void meta_screen_grab_keys | ( | MetaScreen * | screen | ) |
References FALSE, grab_keys(), screen, and TRUE.
Referenced by meta_screen_grab_all_keys(), meta_screen_new(), meta_screen_ungrab_all_keys(), and regrab_key_bindings().
| void meta_screen_ungrab_all_keys | ( | MetaScreen * | screen, |
| guint32 | timestamp | ||
| ) |
References FALSE, meta_screen_grab_keys(), screen, and ungrab_keyboard().
Referenced by meta_display_end_grab_op().
| void meta_screen_ungrab_keys | ( | MetaScreen * | screen | ) |
References FALSE, screen, and ungrab_all_keys().
Referenced by meta_screen_free(), meta_screen_grab_all_keys(), and regrab_key_bindings().
| void meta_set_keybindings_disabled | ( | gboolean | setting | ) |
References all_bindings_disabled, and META_DEBUG_KEYBINDINGS.
Referenced by event_callback(), and main().
|
static |
References FALSE, NULL, screen, and TRUE.
Referenced by handle_run_command(), and handle_run_terminal().
| gboolean meta_window_grab_all_keys | ( | MetaWindow * | window, |
| guint32 | timestamp | ||
| ) |
References _MetaWindow::all_keys_grabbed, _MetaWindow::desc, _MetaWindow::display, FALSE, _MetaWindow::frame, grab_keyboard(), _MetaWindow::grab_on_frame, _MetaWindow::keys_grabbed, META_DEBUG_FOCUS, META_DEBUG_KEYBINDINGS, meta_window_focus(), meta_window_ungrab_keys(), NULL, TRUE, _MetaFrame::xwindow, and _MetaWindow::xwindow.
Referenced by meta_display_begin_grab_op().
| void meta_window_grab_keys | ( | MetaWindow * | window | ) |
References _MetaWindow::all_keys_grabbed, _MetaWindow::display, FALSE, _MetaWindow::frame, grab_keys(), _MetaWindow::grab_on_frame, _MetaDisplay::key_bindings, _MetaWindow::keys_grabbed, META_WINDOW_DOCK, _MetaDisplay::n_key_bindings, NULL, TRUE, _MetaWindow::type, ungrab_all_keys(), _MetaFrame::xwindow, and _MetaWindow::xwindow.
Referenced by meta_window_destroy_frame(), meta_window_ensure_frame(), meta_window_new_with_attrs(), meta_window_ungrab_all_keys(), recalc_window_type(), and regrab_key_bindings().
| void meta_window_ungrab_all_keys | ( | MetaWindow * | window, |
| guint32 | timestamp | ||
| ) |
References _MetaWindow::all_keys_grabbed, _MetaWindow::display, FALSE, _MetaWindow::grab_on_frame, _MetaWindow::keys_grabbed, meta_window_grab_keys(), and ungrab_keyboard().
Referenced by meta_display_end_grab_op().
| void meta_window_ungrab_keys | ( | MetaWindow * | window | ) |
References _MetaWindow::display, FALSE, _MetaWindow::frame, _MetaWindow::grab_on_frame, _MetaWindow::keys_grabbed, NULL, ungrab_all_keys(), _MetaFrame::xwindow, and _MetaWindow::xwindow.
Referenced by meta_window_free(), meta_window_grab_all_keys(), and regrab_key_bindings().
|
static |
References FALSE, get_primary_modifier(), META_DEBUG_KEYBINDINGS, _MetaScreen::no_focus_window, _MetaDisplay::screens, TRUE, and _MetaDisplay::xdisplay.
Referenced by do_choose_window(), and handle_workspace_switch_or_move().
|
static |
References _MetaDisplay::allow_terminal_deactivation, BINDING_PER_WINDOW, FALSE, MetaKeyHandler::flags, MetaKeyHandler::func, _MetaKeyBinding::handler, _MetaDisplay::ignored_modifier_mask, _MetaKeyBinding::keycode, _MetaKeyBinding::mask, meta_bug(), META_DEBUG_KEYBINDINGS, NULL, screen, and TRUE.
Referenced by meta_display_process_key_event().
|
static |
References FALSE, _MetaDisplay::grab_initial_window_pos, _MetaDisplay::grab_was_cancelled, _MetaDisplay::grab_window, _MetaDisplay::grab_wireframe_active, _MetaDisplay::grab_wireframe_rect, _MetaRectangle::height, is_modifier(), META_DEBUG_KEYBINDINGS, META_MAXIMIZE_HORIZONTAL, META_MAXIMIZE_VERTICAL, meta_window_edge_resistance_for_move(), meta_window_get_client_root_coords(), meta_window_get_position(), meta_window_maximize(), meta_window_move(), meta_window_move_resize(), meta_window_update_keyboard_move(), meta_window_update_wireframe(), NORMAL_INCREMENT, NULL, _MetaWindow::shaken_loose, SMALL_INCREMENT, TRUE, _MetaRectangle::width, _MetaRectangle::x, and _MetaRectangle::y.
Referenced by meta_display_process_key_event().
|
static |
References FALSE, _MetaDisplay::grab_initial_window_pos, _MetaDisplay::grab_op, _MetaDisplay::grab_was_cancelled, _MetaDisplay::grab_window, _MetaDisplay::grab_wireframe_active, _MetaDisplay::grab_wireframe_rect, _MetaRectangle::height, is_modifier(), META_DEBUG_KEYBINDINGS, meta_gravity_to_string(), meta_rectangle_resize_with_gravity(), meta_resize_gravity_from_grab_op(), meta_window_edge_resistance_for_resize(), meta_window_move_resize(), meta_window_resize_with_gravity(), meta_window_update_keyboard_resize(), meta_window_update_wireframe(), NORMAL_INCREMENT, NULL, process_keyboard_resize_grab_op_change(), _MetaWindow::rect, screen, _MetaWindow::size_hints, SMALL_INCREMENT, TRUE, _MetaRectangle::width, _MetaRectangle::x, and _MetaRectangle::y.
Referenced by meta_display_process_key_event().
|
static |
References FALSE, _MetaDisplay::grab_op, META_GRAB_OP_KEYBOARD_RESIZING_E, META_GRAB_OP_KEYBOARD_RESIZING_N, META_GRAB_OP_KEYBOARD_RESIZING_NE, META_GRAB_OP_KEYBOARD_RESIZING_NW, META_GRAB_OP_KEYBOARD_RESIZING_S, META_GRAB_OP_KEYBOARD_RESIZING_SE, META_GRAB_OP_KEYBOARD_RESIZING_SW, META_GRAB_OP_KEYBOARD_RESIZING_UNKNOWN, META_GRAB_OP_KEYBOARD_RESIZING_W, meta_window_update_keyboard_resize(), and TRUE.
Referenced by process_keyboard_resize_grab().
|
static |
References FALSE, _MetaDisplay::grab_initial_window_pos, _MetaDisplay::grab_tile_mode, _MetaDisplay::grab_tile_monitor_number, _MetaDisplay::grab_was_cancelled, _MetaDisplay::grab_window, _MetaDisplay::grab_wireframe_active, _MetaRectangle::height, META_MAXIMIZE_HORIZONTAL, META_MAXIMIZE_VERTICAL, META_TILE_MAXIMIZED, META_TILE_NONE, meta_window_maximize(), meta_window_move_resize(), meta_window_tile(), _MetaWindow::shaken_loose, _MetaWindow::tile_mode, _MetaWindow::tile_monitor_number, TRUE, _MetaRectangle::width, _MetaRectangle::x, and _MetaRectangle::y.
Referenced by meta_display_process_key_event().
|
static |
References ARROW_DOWN, ARROW_DOWN_PAD, ARROW_LEFT, ARROW_LEFT_PAD, ARROW_RIGHT, ARROW_RIGHT_PAD, ARROW_UP, ARROW_UP_PAD, _MetaWindow::desc, display_get_keybinding_action(), end_keyboard_grab(), FALSE, _MetaDisplay::grab_mask, _MetaDisplay::grab_old_window_stacking, _MetaDisplay::grab_op, _MetaDisplay::grab_screen, is_modifier(), META_DEBUG_FOCUS, META_DEBUG_KEYBINDINGS, meta_display_end_grab_op(), meta_display_lookup_x_window(), META_GRAB_OP_KEYBOARD_ESCAPING_DOCK, META_GRAB_OP_KEYBOARD_ESCAPING_GROUP, META_GRAB_OP_KEYBOARD_ESCAPING_NORMAL, META_GRAB_OP_KEYBOARD_ESCAPING_NORMAL_ALL_WORKSPACES, META_GRAB_OP_KEYBOARD_TABBING_DOCK, META_GRAB_OP_KEYBOARD_TABBING_GROUP, META_GRAB_OP_KEYBOARD_TABBING_NORMAL, META_GRAB_OP_KEYBOARD_TABBING_NORMAL_ALL_WORKSPACES, META_KEYBINDING_ACTION_CYCLE_GROUP, META_KEYBINDING_ACTION_CYCLE_GROUP_BACKWARD, META_KEYBINDING_ACTION_CYCLE_PANELS, META_KEYBINDING_ACTION_CYCLE_PANELS_BACKWARD, META_KEYBINDING_ACTION_CYCLE_WINDOWS, META_KEYBINDING_ACTION_CYCLE_WINDOWS_BACKWARD, META_KEYBINDING_ACTION_SWITCH_GROUP, META_KEYBINDING_ACTION_SWITCH_GROUP_BACKWARD, META_KEYBINDING_ACTION_SWITCH_PANELS, META_KEYBINDING_ACTION_SWITCH_PANELS_BACKWARD, META_KEYBINDING_ACTION_SWITCH_WINDOWS, META_KEYBINDING_ACTION_SWITCH_WINDOWS_ALL, META_KEYBINDING_ACTION_SWITCH_WINDOWS_ALL_BACKWARD, META_KEYBINDING_ACTION_SWITCH_WINDOWS_BACKWARD, meta_prefs_get_alt_tab_raise_windows(), meta_stack_set_positions(), meta_ui_tab_popup_backward(), meta_ui_tab_popup_down(), meta_ui_tab_popup_forward(), meta_ui_tab_popup_get_selected(), meta_ui_tab_popup_up(), meta_window_activate(), meta_window_minimize(), meta_window_raise(), meta_window_unminimize(), _MetaWindow::minimized, _MetaDisplay::mouse_mode, NULL, screen, _MetaWindow::tab_unminimized, and TRUE.
Referenced by meta_display_process_key_event().
|
static |
References display_get_keybinding_action(), end_keyboard_grab(), FALSE, _MetaDisplay::grab_mask, _MetaDisplay::grab_op, _MetaDisplay::grab_screen, is_modifier(), META_DEBUG_KEYBINDINGS, meta_display_end_grab_op(), META_GRAB_OP_KEYBOARD_WORKSPACE_SWITCHING, META_KEYBINDING_ACTION_WORKSPACE_DOWN, META_KEYBINDING_ACTION_WORKSPACE_LEFT, META_KEYBINDING_ACTION_WORKSPACE_MOVE_DOWN, META_KEYBINDING_ACTION_WORKSPACE_MOVE_LEFT, META_KEYBINDING_ACTION_WORKSPACE_MOVE_RIGHT, META_KEYBINDING_ACTION_WORKSPACE_MOVE_UP, META_KEYBINDING_ACTION_WORKSPACE_RIGHT, META_KEYBINDING_ACTION_WORKSPACE_UP, META_MOTION_DOWN, META_MOTION_LEFT, META_MOTION_RIGHT, META_MOTION_UP, meta_ui_tab_popup_get_selected(), meta_ui_tab_popup_select(), meta_warning(), meta_window_change_workspace(), meta_workspace_activate(), meta_workspace_activate_with_focus(), meta_workspace_focus_default_window(), meta_workspace_get_neighbor(), NULL, screen, and TRUE.
Referenced by meta_display_process_key_event().
|
static |
References MetaKeyPref::bindings, count_bindings(), find_handler(), key_handlers, MetaKeyCombo::keycode, MetaKeyCombo::keysym, META_DEBUG_KEYBINDINGS, META_VIRTUAL_SHIFT_MASK, MetaKeyCombo::modifiers, and MetaKeyPref::name.
Referenced by rebuild_key_binding_table().
|
static |
References _MetaDisplay::key_bindings, META_DEBUG_KEYBINDINGS, meta_prefs_get_key_bindings(), _MetaDisplay::n_key_bindings, and rebuild_binding_table().
Referenced by bindings_changed_callback(), and meta_display_init_keys().
|
static |
References FALSE, meta_display_list_windows(), meta_error_trap_pop(), meta_error_trap_push(), meta_screen_grab_keys(), meta_screen_ungrab_keys(), meta_window_grab_keys(), meta_window_ungrab_keys(), NULL, screen, _MetaDisplay::screens, and windows.
Referenced by bindings_changed_callback(), and meta_display_process_mapping_event().
|
static |
|
static |
|
static |
References _MetaDisplay::key_bindings, _MetaKeyBinding::mask, META_DEBUG_KEYBINDINGS, meta_display_devirtualize_modifiers(), _MetaKeyBinding::modifiers, and _MetaKeyBinding::name.
Referenced by bindings_changed_callback(), meta_display_init_keys(), and meta_display_process_mapping_event().
|
static |
References _MetaDisplay::hyper_mask, _MetaDisplay::ignored_modifier_mask, _MetaDisplay::keymap, _MetaDisplay::keysyms_per_keycode, META_DEBUG_KEYBINDINGS, _MetaDisplay::meta_mask, _MetaDisplay::min_keycode, _MetaDisplay::modmap, _MetaDisplay::num_lock_mask, _MetaDisplay::scroll_lock_mask, _MetaDisplay::super_mask, and _MetaDisplay::xdisplay.
Referenced by meta_display_init_keys(), and meta_display_process_mapping_event().
|
static |
References META_GRAB_OP_KEYBOARD_TABBING_DOCK, META_GRAB_OP_KEYBOARD_TABBING_GROUP, META_GRAB_OP_KEYBOARD_TABBING_NORMAL, META_GRAB_OP_KEYBOARD_TABBING_NORMAL_ALL_WORKSPACES, META_TAB_LIST_DOCKS, META_TAB_LIST_GROUP, META_TAB_LIST_NORMAL, and META_TAB_LIST_NORMAL_ALL_WORKSPACES.
Referenced by do_choose_window().
|
static |
References FALSE, META_DEBUG_KEYBINDINGS, meta_error_trap_pop(), meta_error_trap_pop_with_return(), meta_error_trap_push(), meta_is_debugging(), and _MetaDisplay::xdisplay.
Referenced by meta_screen_ungrab_keys(), meta_window_grab_keys(), and meta_window_ungrab_keys().
|
static |
References FALSE, META_DEBUG_KEYBINDINGS, meta_error_trap_pop(), meta_error_trap_push(), and _MetaDisplay::xdisplay.
Referenced by handle_run_command(), meta_screen_ungrab_all_keys(), and meta_window_ungrab_all_keys().
|
static |
Referenced by meta_display_process_key_event(), and meta_set_keybindings_disabled().
|
static |
Referenced by handle_rename_workspace(), and handle_rename_workspace_callback().
|
static |
Referenced by rebuild_binding_table().