Go to the source code of this file.
Functions | |
| void | meta_display_init_keys (MetaDisplay *display) |
| void | meta_display_shutdown_keys (MetaDisplay *display) |
| void | meta_screen_grab_keys (MetaScreen *screen) |
| void | meta_screen_ungrab_keys (MetaScreen *screen) |
| gboolean | meta_screen_grab_all_keys (MetaScreen *screen, guint32 timestamp) |
| void | meta_screen_ungrab_all_keys (MetaScreen *screen, guint32 timestamp) |
| void | meta_window_grab_keys (MetaWindow *window) |
| void | meta_window_ungrab_keys (MetaWindow *window) |
| gboolean | meta_window_grab_all_keys (MetaWindow *window, guint32 timestamp) |
| void | meta_window_ungrab_all_keys (MetaWindow *window, guint32 timestamp) |
| void | meta_display_process_key_event (MetaDisplay *display, MetaWindow *window, XEvent *event) |
| void | meta_set_keybindings_disabled (gboolean setting) |
| void | meta_display_process_mapping_event (MetaDisplay *display, XEvent *event) |
Performs global X grabs on the keys we need to be told about, like the one to close a window. It also deals with incoming key events.
Definition in file keybindings.h.
| void meta_display_init_keys | ( | MetaDisplay * | display | ) |
Definition at line 961 of file keybindings.c.
References bindings_changed_callback(), _MetaDisplay::hyper_mask, _MetaDisplay::ignored_modifier_mask, _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_screen_bindings, _MetaDisplay::n_window_bindings, NULL, _MetaDisplay::num_lock_mask, rebuild_screen_binding_table(), rebuild_window_binding_table(), reload_keycodes(), reload_keymap(), reload_modifiers(), reload_modmap(), _MetaDisplay::screen_bindings, _MetaDisplay::scroll_lock_mask, _MetaDisplay::super_mask, _MetaDisplay::window_bindings, and _MetaDisplay::xdisplay.
| void meta_display_process_key_event | ( | MetaDisplay * | display, | |
| MetaWindow * | window, | |||
| XEvent * | event | |||
| ) |
Definition at line 1663 of file keybindings.c.
References all_bindings_disabled, _MetaScreen::all_keys_grabbed, _MetaWindow::all_keys_grabbed, _MetaWindow::desc, _MetaDisplay::grab_op, _MetaDisplay::grab_screen, _MetaDisplay::grab_window, META_DEBUG_KEYBINDINGS, meta_display_end_grab_op(), 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_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_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_screen_bindings, _MetaDisplay::n_window_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, _MetaDisplay::screen_bindings, TRUE, _MetaScreen::ui, _MetaDisplay::window_bindings, and _MetaDisplay::xdisplay.
Referenced by event_callback().
| void meta_display_process_mapping_event | ( | MetaDisplay * | display, | |
| XEvent * | event | |||
| ) |
Definition at line 902 of file keybindings.c.
References META_DEBUG_KEYBINDINGS, regrab_screen_bindings(), regrab_window_bindings(), reload_keycodes(), reload_keymap(), reload_modifiers(), and reload_modmap().
Referenced by event_callback().
| void meta_display_shutdown_keys | ( | MetaDisplay * | display | ) |
Definition at line 1004 of file keybindings.c.
References bindings_changed_callback(), _MetaDisplay::keymap, meta_prefs_remove_listener(), meta_XFree, _MetaDisplay::modmap, _MetaDisplay::screen_bindings, and _MetaDisplay::window_bindings.
Referenced by meta_display_close().
| gboolean meta_screen_grab_all_keys | ( | MetaScreen * | screen, | |
| guint32 | timestamp | |||
| ) |
Definition at line 1324 of file keybindings.c.
References _MetaScreen::all_keys_grabbed, _MetaScreen::display, FALSE, grab_keyboard(), _MetaScreen::keys_grabbed, META_DEBUG_KEYBINDINGS, meta_screen_grab_keys(), meta_screen_ungrab_keys(), TRUE, and _MetaScreen::xroot.
Referenced by meta_display_begin_grab_op().
| void meta_screen_grab_keys | ( | MetaScreen * | screen | ) |
Definition at line 1170 of file keybindings.c.
References _MetaScreen::all_keys_grabbed, _MetaScreen::display, grab_keys(), _MetaScreen::keys_grabbed, _MetaDisplay::n_screen_bindings, _MetaDisplay::screen_bindings, TRUE, and _MetaScreen::xroot.
Referenced by meta_screen_grab_all_keys(), meta_screen_new(), meta_screen_ungrab_all_keys(), and regrab_screen_bindings().
| void meta_screen_ungrab_all_keys | ( | MetaScreen * | screen, | |
| guint32 | timestamp | |||
| ) |
Definition at line 1346 of file keybindings.c.
References _MetaScreen::all_keys_grabbed, _MetaScreen::display, FALSE, _MetaScreen::keys_grabbed, meta_screen_grab_keys(), and ungrab_keyboard().
Referenced by meta_display_end_grab_op().
| void meta_screen_ungrab_keys | ( | MetaScreen * | screen | ) |
Definition at line 1186 of file keybindings.c.
References _MetaScreen::display, FALSE, _MetaScreen::keys_grabbed, ungrab_all_keys(), and _MetaScreen::xroot.
Referenced by meta_screen_free(), meta_screen_grab_all_keys(), and regrab_screen_bindings().
| void meta_set_keybindings_disabled | ( | gboolean | setting | ) |
Definition at line 3835 of file keybindings.c.
References all_bindings_disabled, and META_DEBUG_KEYBINDINGS.
Referenced by event_callback().
| gboolean meta_window_grab_all_keys | ( | MetaWindow * | window, | |
| guint32 | timestamp | |||
| ) |
Definition at line 1361 of file keybindings.c.
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, _MetaWindow::xwindow, and _MetaFrame::xwindow.
Referenced by meta_display_begin_grab_op().
| void meta_window_grab_keys | ( | MetaWindow * | window | ) |
Definition at line 1196 of file keybindings.c.
References _MetaWindow::all_keys_grabbed, _MetaWindow::display, FALSE, _MetaWindow::frame, grab_keys(), _MetaWindow::grab_on_frame, _MetaWindow::keys_grabbed, META_WINDOW_DOCK, _MetaDisplay::n_window_bindings, NULL, TRUE, _MetaWindow::type, ungrab_all_keys(), _MetaDisplay::window_bindings, _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_window_bindings().
| void meta_window_ungrab_all_keys | ( | MetaWindow * | window, | |
| guint32 | timestamp | |||
| ) |
Definition at line 1397 of file keybindings.c.
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 | ) |
Definition at line 1230 of file keybindings.c.
References _MetaWindow::display, FALSE, _MetaWindow::frame, _MetaWindow::grab_on_frame, _MetaWindow::keys_grabbed, NULL, ungrab_all_keys(), _MetaWindow::xwindow, and _MetaFrame::xwindow.
Referenced by meta_window_free(), meta_window_grab_all_keys(), and regrab_window_bindings().
1.5.5