Meta.Display
Description: Reference for Meta.Display

### Class

# MetaDisplay

since: 13

#### Description [src]

    final class Meta.Display : GObject.Object
    {
      /* No available fields */
    }

Mutter display representation

The display is represented as a `MetaDisplay` struct.

Available since: 13

#### Ancestors

- GObject

#### Instance methods

###### 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.

since: 13

###### 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.

since: 13

###### meta_display_close

No description available.

since: 13

###### meta_display_focus_default_window

No description available.

since: 13

###### meta_display_freeze_keyboard

No description available.

since: 13

###### meta_display_get_compositor

No description available.

since: 13

###### meta_display_get_compositor_modifiers

No description available.

since: 13

###### meta_display_get_context

No description available.

since: 13

###### meta_display_get_current_monitor

Gets the index of the monitor that currently has the mouse pointer.

since: 13

###### meta_display_get_current_time

No description available.

since: 13

###### meta_display_get_current_time_roundtrip

No description available.

since: 13

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

since: 13

###### 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.

since: 13

###### meta_display_get_last_user_time

No description available.

since: 13

###### meta_display_get_monitor_geometry

Stores the location and size of the indicated `monitor` in `geometry`.

since: 13

###### 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.

since: 13

###### meta_display_get_monitor_index_for_rect

No description available.

since: 13

###### meta_display_get_monitor_neighbor_index

No description available.

since: 13

###### meta_display_get_monitor_scale

Gets the monitor scaling value for the given `monitor`.

since: 13

###### meta_display_get_n_monitors

Gets the number of monitors that are joined together to form `display`.

since: 13

###### meta_display_get_pad_button_label

No description available.

since: 13

###### meta_display_get_pad_feature_label

No description available.

since: 13

###### meta_display_get_primary_monitor

Gets the index of the primary monitor on this `display`.

since: 13

###### meta_display_get_selection

No description available.

since: 13

###### meta_display_get_size

Retrieve the size of the display.

since: 13

###### meta_display_get_sound_player

No description available.

since: 13

###### meta_display_get_startup_notification

No description available.

since: 13

###### meta_display_get_tab_current

Determine the active window that should be displayed for Alt-TAB.

since: 13

###### 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.

since: 13

###### meta_display_get_tab_next

Determine the next window that should be displayed for Alt-TAB functionality.

since: 13

###### meta_display_get_workspace_manager

No description available.

since: 13

###### meta_display_get_x11_display

No description available.

since: 13

###### meta_display_grab_accelerator

No description available.

since: 13

###### meta_display_is_grabbed

Returns `TRUE` if there is an ongoing grab operation.

since: 13

###### meta_display_is_pointer_emulating_sequence

Tells whether the event sequence is the used for pointer emulation and single-touch interaction.

since: 13

###### meta_display_list_all_windows

List all windows, including override-redirect ones. The windows are in no particular order.

since: 13

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

since: 13

###### meta_display_request_pad_osd

No description available.

since: 13

###### meta_display_set_cursor

No description available.

since: 13

###### meta_display_set_input_focus

No description available.

since: 13

###### 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.

since: 13

###### meta_display_supports_extended_barriers

No description available.

since: 13

###### meta_display_unfreeze_keyboard

No description available.

since: 13

###### meta_display_ungrab_accelerator

No description available.

since: 13

###### meta_display_ungrab_keyboard

No description available.

since: 13

###### meta_display_unset_input_focus

No description available.

since: 13

###### 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”.

since: 13

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

###### Meta.Display:compositor-modifiers

No description available.

since: 13

###### Meta.Display:focus-window

No description available.

since: 13

#### Signals

###### Meta.Display::accelerator-activated

No description available.

since: 13

###### Meta.Display::closing

No description available.

since: 13

###### Meta.Display::cursor-updated

No description available.

since: 13

###### Meta.Display::gl-video-memory-purged

No description available.

since: 13

###### Meta.Display::grab-op-begin

No description available.

since: 13

###### Meta.Display::grab-op-end

No description available.

since: 13

###### Meta.Display::in-fullscreen-changed

No description available.

since: 13

###### Meta.Display::init-xserver

No description available.

since: 13

###### Meta.Display::modifiers-accelerator-activated

The ::modifiers-accelerator-activated signal will be emitted when a special modifiers-only keybinding is activated.

since: 13

###### Meta.Display::overlay-key

No description available.

since: 13

###### Meta.Display::pad-mode-switch

No description available.

since: 13

###### Meta.Display::restacked

No description available.

since: 13

###### Meta.Display::restart

The signal is emitted to indicate that compositor should reexec the process.

since: 13

###### Meta.Display::show-osd

No description available.

since: 13

###### Meta.Display::show-pad-osd

Requests the pad button mapping OSD to be shown.

since: 13

###### Meta.Display::show-resize-popup

No description available.

since: 13

###### Meta.Display::show-restart-message

The signal will be emitted to indicate that the compositor should show a message during restart.

since: 13

###### Meta.Display::showing-desktop-changed

No description available.

since: 13

###### Meta.Display::window-created

No description available.

since: 13

###### Meta.Display::window-demands-attention

No description available.

since: 13

###### Meta.Display::window-entered-monitor

No description available.

since: 13

###### Meta.Display::window-left-monitor

No description available.

since: 13

###### Meta.Display::window-marked-urgent

No description available.

since: 13

###### Meta.Display::window-visibility-updated

No description available.

since: 13

###### Meta.Display::workareas-changed

No description available.

since: 13

###### Meta.Display::x11-display-closing

No description available.

since: 13

###### Meta.Display::x11-display-opened

No description available.

since: 13

###### Meta.Display::x11-display-setup

No description available.

since: 13

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

since: 2.0

#### Class structure

    struct MetaDisplayClass {
      /* no available fields */
    }

No description available.