marco 1.29.1
Window manager
Loading...
Searching...
No Matches
keybindings.h File Reference
View source

Grab and ungrab keys, and process the key events. More...

#include "display-private.h"
#include "window.h"
Include dependency graph for keybindings.h:
This graph shows which files directly or indirectly include this file:

Macros

#define ARROW_LEFT   113
 
#define ARROW_LEFT_PAD   83
 
#define ARROW_RIGHT   114
 
#define ARROW_RIGHT_PAD   85
 
#define ARROW_UP   111
 
#define ARROW_UP_PAD   80
 
#define ARROW_DOWN   116
 
#define ARROW_DOWN_PAD   88
 

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)
 

Detailed Description

Grab and ungrab keys, and process the key events.

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.

Macro Definition Documentation

◆ ARROW_DOWN

#define ARROW_DOWN   116

◆ ARROW_DOWN_PAD

#define ARROW_DOWN_PAD   88

◆ ARROW_LEFT

#define ARROW_LEFT   113

◆ ARROW_LEFT_PAD

#define ARROW_LEFT_PAD   83

◆ ARROW_RIGHT

#define ARROW_RIGHT   114

◆ ARROW_RIGHT_PAD

#define ARROW_RIGHT_PAD   85

◆ ARROW_UP

#define ARROW_UP   111

◆ ARROW_UP_PAD

#define ARROW_UP_PAD   80

Function Documentation

◆ meta_display_init_keys()

◆ meta_display_process_key_event()

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().

Here is the call graph for this function:

◆ meta_display_process_mapping_event()

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().

Here is the call graph for this function:

◆ meta_display_shutdown_keys()

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().

Here is the call graph for this function:

◆ meta_screen_grab_all_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().

Here is the call graph for this function:

◆ meta_screen_grab_keys()

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().

Here is the call graph for this function:

◆ meta_screen_ungrab_all_keys()

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().

Here is the call graph for this function:

◆ meta_screen_ungrab_keys()

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().

Here is the call graph for this function:

◆ meta_set_keybindings_disabled()

void meta_set_keybindings_disabled ( gboolean  setting)

◆ meta_window_grab_all_keys()

gboolean meta_window_grab_all_keys ( MetaWindow *  window,
guint32  timestamp 
)

◆ meta_window_grab_keys()

◆ meta_window_ungrab_all_keys()

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().

Here is the call graph for this function:

◆ meta_window_ungrab_keys()

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().

Here is the call graph for this function: