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_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_get_current_monitor
Gets the index of the monitor that currently has the mouse pointer.
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_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_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_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_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_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”.
Signals
Meta.Display::modifiers-accelerator-activated
The ::modifiers-accelerator-activated signal will be emitted when a special modifiers-only keybinding is activated.
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-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.
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.