Class

MetaDisplay

Description [src]

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

Mutter display representation

The display is represented as a MetaDisplay struct.

Hierarchy

hierarchy this MetaDisplay ancestor_0 GObject ancestor_0--this

Ancestors

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.

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
No description available.

meta_display_focus_default_window
No description available.

meta_display_get_compositor
No description available.

meta_display_get_compositor_modifiers
No description available.

meta_display_get_context
No description available.

meta_display_get_current_monitor

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

meta_display_get_current_time
No description available.

meta_display_get_current_time_roundtrip
No description available.

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_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
No description available.

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
No description available.

meta_display_get_monitor_neighbor_index
No description available.

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_button_label
No description available.

meta_display_get_pad_feature_label
No description available.

meta_display_get_primary_monitor

Gets the index of the primary monitor on this display.

meta_display_get_selection
No description available.

meta_display_get_size

Retrieve the size of the display.

meta_display_get_sound_player
No description available.

meta_display_get_startup_notification
No description available.

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
No description available.

meta_display_get_x11_display
No description available.

meta_display_grab_accelerator
No description available.

meta_display_is_grabbed

Returns TRUE if there is an ongoing grab operation.

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
No description available.

meta_display_set_cursor
No description available.

meta_display_set_input_focus
No description available.

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_ungrab_accelerator
No description available.

meta_display_unset_input_focus
No description available.

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

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Meta.Display:compositor-modifiers
No description available.

Meta.Display:focus-window
No description available.

Signals

Meta.Display::accelerator-activated
No description available.

Meta.Display::accelerator-deactivated
No description available.

Meta.Display::closing
No description available.

Meta.Display::cursor-updated
No description available.

Meta.Display::focus-window
No description available.

Meta.Display::gl-video-memory-purged
No description available.

Meta.Display::grab-op-begin
No description available.

Meta.Display::grab-op-end
No description available.

Meta.Display::in-fullscreen-changed
No description available.

Meta.Display::init-xserver
No description available.

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
No description available.

Meta.Display::pad-mode-switch
No description available.

Meta.Display::restacked
No description available.

Meta.Display::restart

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

Meta.Display::show-osd
No description available.

Meta.Display::show-pad-osd

Requests the pad button mapping OSD to be shown.

Meta.Display::show-resize-popup
No description available.

Meta.Display::show-restart-message

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

Meta.Display::showing-desktop-changed
No description available.

Meta.Display::window-created
No description available.

Meta.Display::window-demands-attention
No description available.

Meta.Display::window-entered-monitor
No description available.

Meta.Display::window-left-monitor
No description available.

Meta.Display::window-marked-urgent
No description available.

Meta.Display::window-visibility-updated
No description available.

Meta.Display::workareas-changed
No description available.

Meta.Display::x11-display-closing
No description available.

Meta.Display::x11-display-opened
No description available.

Meta.Display::x11-display-setup
No description available.

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.

Class structure

struct MetaDisplayClass {
  /* no available fields */
}

No description available.