Class
MetaDisplay
Instance methods
meta_display_add_ignored_crossing_serial
Save the specified serial and ignore crossing events with that serial for the purpose of focus-follows-mouse. This can be used for certain changes to the window hierarchy that we don’t want to change the focus window, even if they cause the pointer to end up in a new window.
meta_display_add_keybinding
Add a keybinding at runtime. The key name
in schema
needs to be of
type G_VARIANT_TYPE_STRING_ARRAY
, with each string describing a
keybinding in the form of “<Control>a” or “<Shift><Alt>F1”. The parser
is fairly liberal and allows lower or upper case, and also abbreviations
such as “<Ctl>” and “<Ctrl>”. If the key is set to the empty list or a
list with a single element of either “” or “disabled”, the keybinding is disabled.
meta_display_begin_grab_op
meta_display_clear_mouse_mode
Sets the mouse-mode flag to FALSE
, which means that motion events are
no longer ignored in mouse or sloppy focus.
This is an internal function. It should be used only for reimplementing
keybindings, and only in a manner compatible with core code.
meta_display_close
meta_display_end_grab_op
meta_display_focus_default_window
meta_display_freeze_keyboard
meta_display_get_compositor
meta_display_get_compositor_modifiers
meta_display_get_context
meta_display_get_current_monitor
Gets the index of the monitor that currently has the mouse pointer.
meta_display_get_current_time
meta_display_get_current_time_roundtrip
meta_display_get_focus_window
Get our best guess as to the “currently” focused window (that is, the window that we expect will be focused at the point when the X server processes our next request).
meta_display_get_grab_op
Gets the current grab operation, if any.
meta_display_get_keybinding_action
Get the keybinding action bound to keycode
. Builtin keybindings
have a fixed associated MetaKeyBindingAction
, for bindings added
dynamically the function will return the keybinding action
meta_display_add_keybinding()
returns on registration.
meta_display_get_last_user_time
meta_display_get_monitor_geometry
Stores the location and size of the indicated monitor
in geometry
.
meta_display_get_monitor_in_fullscreen
Determines whether there is a fullscreen window obscuring the specified monitor. If there is a fullscreen window, the desktop environment will typically hide any controls that might obscure the fullscreen window.
meta_display_get_monitor_index_for_rect
meta_display_get_monitor_neighbor_index
meta_display_get_monitor_scale
Gets the monitor scaling value for the given monitor
.
meta_display_get_n_monitors
Gets the number of monitors that are joined together to form display
.
meta_display_get_pad_action_label
meta_display_get_primary_monitor
Gets the index of the primary monitor on this display
.
meta_display_get_selection
meta_display_get_size
Retrieve the size of the display.
meta_display_get_sound_player
meta_display_get_startup_notification
meta_display_get_tab_current
Determine the active window that should be displayed for Alt-TAB.
meta_display_get_tab_list
Determine the list of windows that should be displayed for Alt-TAB
functionality. The windows are returned in most recently used order.
If workspace
is not NULL
, the list only contains windows that are on
workspace
or have the demands-attention hint set; otherwise it contains
all windows.
meta_display_get_tab_next
Determine the next window that should be displayed for Alt-TAB functionality.
meta_display_get_workspace_manager
meta_display_get_x11_display
meta_display_grab_accelerator
meta_display_is_pointer_emulating_sequence
Tells whether the event sequence is the used for pointer emulation and single-touch interaction.
meta_display_list_all_windows
List all windows, including override-redirect ones. The windows are in no particular order.
meta_display_remove_keybinding
Remove keybinding name
; the function will fail if name
is not a known
keybinding or has not been added with meta_display_add_keybinding()
.
meta_display_request_pad_osd
meta_display_set_cursor
meta_display_set_input_focus
meta_display_sort_windows_by_stacking
Sorts a set of windows according to their current stacking order. If windows from multiple screens are present in the set of input windows, then all the windows on screen 0 are sorted below all the windows on screen 1, and so forth. Since the stacking order of override-redirect windows isn’t controlled by Metacity, if override-redirect windows are in the input, the result may not correspond to the actual stacking order in the X server.
meta_display_supports_extended_barriers
meta_display_unfreeze_keyboard
meta_display_ungrab_accelerator
meta_display_ungrab_keyboard
meta_display_unset_input_focus
meta_display_xserver_time_is_before
Xserver time can wraparound, thus comparing two timestamps needs to take this into account. If no wraparound has occurred, this is equivalent to time1 < time2 Otherwise, we need to account for the fact that wraparound can occur and the fact that a timestamp of 0 must be special-cased since it means “older than anything else”.
Properties
Meta.Display:compositor-modifiers
Meta.Display:focus-window
Signals
Meta.Display::accelerator-activated
Meta.Display::closing
Meta.Display::cursor-updated
Meta.Display::gl-video-memory-purged
Meta.Display::grab-op-begin
Meta.Display::grab-op-end
Meta.Display::in-fullscreen-changed
Meta.Display::init-xserver
Meta.Display::modifiers-accelerator-activated
The ::modifiers-accelerator-activated signal will be emitted when a special modifiers-only keybinding is activated.
Meta.Display::overlay-key
Meta.Display::pad-mode-switch
Meta.Display::restacked
Meta.Display::restart
The ::restart signal is emitted to indicate that compositor
should reexec the process. This is
emitted when meta_restart()
is called, either by Mutter
internally or by the embedding compositor. See also ::show-restart-message.
Meta.Display::show-osd
Meta.Display::show-pad-osd
Requests the pad button mapping OSD to be shown.
Meta.Display::show-resize-popup
Meta.Display::show-restart-message
The ::show-restart-message signal will be emitted to indicate
that the compositor should show a message during restart. This is
emitted when meta_restart()
is called, either by Mutter
internally or by the embedding compositor. The message should be
immediately added to the Clutter stage in its final form -
::restart will be emitted to exit the application and leave the
stage contents frozen as soon as the the stage is painted again.