marco 1.29.1
Window manager
Loading...
Searching...
No Matches
window.c File Reference
View source
#include <config.h>
#include <glib/gi18n-lib.h>
#include "window-private.h"
#include "edge-resistance.h"
#include "util.h"
#include "frame-private.h"
#include "errors.h"
#include "workspace.h"
#include "stack.h"
#include "keybindings.h"
#include "ui.h"
#include "place.h"
#include "session.h"
#include "effects.h"
#include "prefs.h"
#include "resizepopup.h"
#include "xprops.h"
#include "group.h"
#include "window-props.h"
#include "constraints.h"
#include "compositor.h"
#include <X11/Xatom.h>
#include <X11/Xlibint.h>
#include <string.h>
Include dependency graph for window.c:

Data Structures

struct  ClientLeaderData
 
struct  EventScannerData
 
struct  FindAncestorData
 

Macros

#define N_INITIAL_PROPS   22
 
#define _NET_WM_MOVERESIZE_SIZE_TOPLEFT   0
 
#define _NET_WM_MOVERESIZE_SIZE_TOP   1
 
#define _NET_WM_MOVERESIZE_SIZE_TOPRIGHT   2
 
#define _NET_WM_MOVERESIZE_SIZE_RIGHT   3
 
#define _NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT   4
 
#define _NET_WM_MOVERESIZE_SIZE_BOTTOM   5
 
#define _NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT   6
 
#define _NET_WM_MOVERESIZE_SIZE_LEFT   7
 
#define _NET_WM_MOVERESIZE_MOVE   8
 
#define _NET_WM_MOVERESIZE_SIZE_KEYBOARD   9
 
#define _NET_WM_MOVERESIZE_MOVE_KEYBOARD   10
 
#define _NET_WM_MOVERESIZE_CANCEL   11
 
#define MAX_N_ACTIONS   12
 
#define DRAG_THRESHOLD_TO_SHAKE_THRESHOLD_FACTOR   2
 

Functions

static void update_sm_hints (MetaWindow *window)
 
static void update_net_frame_extents (MetaWindow *window)
 
static void recalc_window_type (MetaWindow *window)
 
static void recalc_window_features (MetaWindow *window)
 
static void invalidate_work_areas (MetaWindow *window)
 
static void set_wm_state (MetaWindow *window, int state)
 
static void set_net_wm_state (MetaWindow *window)
 
static void set_allowed_actions_hint (MetaWindow *window)
 
static void send_configure_notify (MetaWindow *window)
 
static gboolean process_property_notify (MetaWindow *window, XPropertyEvent *event)
 
static void meta_window_show (MetaWindow *window)
 
static void meta_window_hide (MetaWindow *window)
 
static gboolean meta_window_same_client (MetaWindow *window, MetaWindow *other_window)
 
static void meta_window_save_rect (MetaWindow *window)
 
static void save_user_window_placement (MetaWindow *window)
 Save the user_rect, but only if the window is neither maximized nor fullscreen, otherwise the window may snap back to those dimensions (bug #461927).
 
static void force_save_user_window_placement (MetaWindow *window)
 Save the user_rect regardless of whether the window is maximized or fullscreen.
 
static void meta_window_move_resize_internal (MetaWindow *window, MetaMoveResizeFlags flags, int resize_gravity, int root_x_nw, int root_y_nw, int w, int h)
 
static void ensure_mru_position_after (MetaWindow *window, MetaWindow *after_this_one)
 
static void meta_window_move_resize_now (MetaWindow *window)
 
static void meta_window_unqueue (MetaWindow *window, guint queuebits)
 
static void update_move (MetaWindow *window, gboolean snap, int x, int y)
 
static gboolean update_move_timeout (gpointer data)
 
static void update_resize (MetaWindow *window, gboolean snap, int x, int y, gboolean force)
 
static MetaTileMode calculate_tiling_mode (int x, int y, MetaWindow *window, const MetaXineramaScreenInfo *monitor, MetaRectangle work_area, int shake_threshold)
 
static void meta_window_transform_to_monitor (MetaRectangle *target_rect, const MetaRectangle *from_monitor, const MetaRectangle *to_monitor)
 
static gboolean update_resize_timeout (gpointer data)
 
static void meta_window_flush_calc_showing (MetaWindow *window)
 
static gboolean queue_calc_showing_func (MetaWindow *window, void *data)
 
static void meta_window_apply_session_info (MetaWindow *window, const MetaWindowSessionInfo *info)
 
static void unmaximize_window_before_freeing (MetaWindow *window)
 
static void unminimize_window_and_all_transient_parents (MetaWindow *window)
 
static gboolean idle_calc_showing (gpointer data)
 
static gboolean idle_move_resize (gpointer data)
 
static gboolean idle_update_icon (gpointer data)
 
static gboolean is_desktop_or_dock_foreach (MetaWindow *window, void *data)
 
static void maybe_leave_show_desktop_mode (MetaWindow *window)
 
MetaWindow * meta_window_new (MetaDisplay *display, Window xwindow, gboolean must_be_viewable)
 
MetaWindow * meta_window_new_with_attrs (MetaDisplay *display, Window xwindow, gboolean must_be_viewable, XWindowAttributes *attrs)
 
void meta_window_free (MetaWindow *window, guint32 timestamp)
 
gboolean meta_window_located_on_workspace (MetaWindow *window, MetaWorkspace *workspace)
 
static gboolean is_minimized_foreach (MetaWindow *window, void *data)
 
static gboolean ancestor_is_minimized (MetaWindow *window)
 
gboolean meta_window_showing_on_its_workspace (MetaWindow *window)
 
gboolean meta_window_should_be_showing (MetaWindow *window)
 
static void finish_minimize (gpointer data)
 
static void implement_showing (MetaWindow *window, gboolean showing)
 
void meta_window_calc_showing (MetaWindow *window)
 
static int stackcmp (gconstpointer a, gconstpointer b)
 
void meta_window_queue (MetaWindow *window, guint queuebits)
 
static gboolean intervening_user_event_occurred (MetaWindow *window)
 
gboolean __window_is_terminal (MetaWindow *window)
 
static void window_state_on_map (MetaWindow *window, gboolean *takes_focus, gboolean *places_on_top)
 
static gboolean windows_overlap (const MetaWindow *w1, const MetaWindow *w2)
 
static gboolean window_would_be_covered (const MetaWindow *newbie)
 
void meta_window_minimize (MetaWindow *window)
 
void meta_window_unminimize (MetaWindow *window)
 
static void ensure_size_hints_satisfied (MetaRectangle *rect, const XSizeHints *size_hints)
 
void meta_window_maximize_internal (MetaWindow *window, MetaMaximizeFlags directions, MetaRectangle *saved_rect)
 
void meta_window_maximize (MetaWindow *window, MetaMaximizeFlags directions)
 
void meta_window_tile (MetaWindow *window)
 
void meta_window_untile (MetaWindow *window)
 
static gboolean meta_window_can_tile_maximized (MetaWindow *window)
 
gboolean meta_window_can_tile (MetaWindow *window)
 
void meta_window_unmaximize (MetaWindow *window, MetaMaximizeFlags directions)
 
void meta_window_move_to_monitor (MetaWindow *window, const MetaXineramaScreenInfo *from_monitor, const MetaXineramaScreenInfo *to_monitor)
 
void meta_window_make_above (MetaWindow *window)
 
void meta_window_unmake_above (MetaWindow *window)
 
void meta_window_make_fullscreen_internal (MetaWindow *window)
 
void meta_window_make_fullscreen (MetaWindow *window)
 
void meta_window_unmake_fullscreen (MetaWindow *window)
 
void meta_window_update_fullscreen_monitors (MetaWindow *window, unsigned long top, unsigned long bottom, unsigned long left, unsigned long right)
 
void meta_window_shade (MetaWindow *window, guint32 timestamp)
 
void meta_window_unshade (MetaWindow *window, guint32 timestamp)
 
static gboolean unminimize_func (MetaWindow *window, void *data)
 
static void window_activate (MetaWindow *window, guint32 timestamp, MetaClientType source_indication, MetaWorkspace *workspace)
 
void meta_window_activate (MetaWindow *window, guint32 timestamp)
 
void meta_window_activate_with_workspace (MetaWindow *window, guint32 timestamp, MetaWorkspace *workspace)
 
static void adjust_for_gravity (MetaWindow *window, MetaFrameBorders *borders, gboolean coords_assume_border, int gravity, MetaRectangle *rect)
 
static gboolean static_gravity_works (MetaDisplay *display)
 
static gboolean move_attached_dialog (MetaWindow *window, void *data)
 
void meta_window_resize (MetaWindow *window, gboolean user_op, int w, int h)
 
void meta_window_move (MetaWindow *window, gboolean user_op, int root_x_nw, int root_y_nw)
 
void meta_window_move_resize (MetaWindow *window, gboolean user_op, int root_x_nw, int root_y_nw, int w, int h)
 
void meta_window_resize_with_gravity (MetaWindow *window, gboolean user_op, int w, int h, int gravity)
 
void meta_window_get_position (MetaWindow *window, int *x, int *y)
 
void meta_window_get_client_root_coords (MetaWindow *window, MetaRectangle *rect)
 
void meta_window_get_gravity_position (MetaWindow *window, int gravity, int *root_x, int *root_y)
 
void meta_window_get_geometry (MetaWindow *window, int *x, int *y, int *width, int *height)
 
void meta_window_get_input_rect (const MetaWindow *window, MetaRectangle *rect)
 meta_window_get_input_rect: @window: a MetaWindow @rect: (out): pointer to an allocated MetaRectangle
 
void meta_window_get_outer_rect (const MetaWindow *window, MetaRectangle *rect)
 meta_window_get_outer_rect: @window: a MetaWindow @rect: (out): pointer to an allocated MetaRectangle
 
void meta_window_get_xor_rect (MetaWindow *window, const MetaRectangle *grab_wireframe_rect, MetaRectangle *xor_rect)
 
static void meta_window_get_wireframe_geometry (MetaWindow *window, int *width, int *height)
 
void meta_window_begin_wireframe (MetaWindow *window)
 
void meta_window_update_wireframe (MetaWindow *window, int x, int y, int width, int height)
 
void meta_window_end_wireframe (MetaWindow *window)
 
const char * meta_window_get_startup_id (MetaWindow *window)
 
static MetaWindow * get_modal_transient (MetaWindow *window)
 
void meta_window_focus (MetaWindow *window, guint32 timestamp)
 
static void meta_window_change_workspace_without_transients (MetaWindow *window, MetaWorkspace *workspace)
 
static gboolean change_workspace_foreach (MetaWindow *window, void *data)
 
void meta_window_change_workspace (MetaWindow *window, MetaWorkspace *workspace)
 
static void window_stick_impl (MetaWindow *window)
 
static void window_unstick_impl (MetaWindow *window)
 
static gboolean stick_foreach_func (MetaWindow *window, void *data)
 
void meta_window_stick (MetaWindow *window)
 
void meta_window_unstick (MetaWindow *window)
 
unsigned long meta_window_get_net_wm_desktop (MetaWindow *window)
 
void meta_window_set_current_workspace_hint (MetaWindow *window)
 
static gboolean find_root_ancestor (MetaWindow *window, void *data)
 
MetaWindow * meta_window_find_root_ancestor (MetaWindow *window)
 
void meta_window_raise (MetaWindow *window)
 
void meta_window_lower (MetaWindow *window)
 
void meta_window_send_icccm_message (MetaWindow *window, Atom atom, guint32 timestamp)
 
void meta_window_move_resize_request (MetaWindow *window, guint value_mask, int gravity, int new_x, int new_y, int new_width, int new_height)
 
gboolean meta_window_configure_request (MetaWindow *window, XEvent *event)
 
gboolean meta_window_property_notify (MetaWindow *window, XEvent *event)
 
gboolean meta_window_client_message (MetaWindow *window, XEvent *event)
 
static void meta_window_appears_focused_changed (MetaWindow *window)
 
static void check_ancestor_focus_appearance (MetaWindow *window)
 
gboolean meta_window_notify_focus (MetaWindow *window, XEvent *event)
 
gboolean meta_window_get_icon_geometry (MetaWindow *window, MetaRectangle *rect)
 
static Window read_client_leader (MetaDisplay *display, Window xwindow)
 
static gboolean find_client_leader_func (MetaWindow *ancestor, void *data)
 
void meta_window_update_role (MetaWindow *window)
 
void meta_window_update_net_wm_type (MetaWindow *window)
 
static void redraw_icon (MetaWindow *window)
 
static gchar * meta_window_get_desktop_id (MetaWindow *window)
 
void meta_window_update_icon_now (MetaWindow *window)
 
MetaWorkspace * meta_window_get_workspace (MetaWindow *window)
 
GList * meta_window_get_workspaces (MetaWindow *window)
 
void meta_window_update_struts (MetaWindow *window)
 
void meta_window_recalc_window_type (MetaWindow *window)
 
void meta_window_frame_size_changed (MetaWindow *window)
 
void meta_window_recalc_features (MetaWindow *window)
 
static void menu_callback (MetaWindowMenu *menu, Display *xdisplay, Window client_xwindow, guint32 timestamp, MetaMenuOp op, int workspace_index, gpointer data)
 
void meta_window_show_menu (MetaWindow *window, int root_x, int root_y, int button, guint32 timestamp)
 
void meta_window_shove_titlebar_onscreen (MetaWindow *window)
 
gboolean meta_window_titlebar_is_onscreen (MetaWindow *window)
 
static double time_diff (const gint64 first, const gint64 second)
 
static gboolean check_moveresize_frequency (MetaWindow *window, gdouble *remaining)
 
static Bool find_last_time_predicate (Display *display, XEvent *xevent, XPointer arg)
 
static gboolean check_use_this_motion_notify (MetaWindow *window, XEvent *event)
 
static void update_tile_mode (MetaWindow *window)
 
void meta_window_handle_mouse_grab_op_event (MetaWindow *window, XEvent *event)
 
void meta_window_set_gravity (MetaWindow *window, int gravity)
 
static void get_work_area_xinerama (MetaWindow *window, MetaRectangle *area, int which_xinerama)
 
void meta_window_get_work_area_current_xinerama (MetaWindow *window, MetaRectangle *area)
 
void meta_window_get_work_area_for_xinerama (MetaWindow *window, int which_xinerama, MetaRectangle *area)
 
void meta_window_get_work_area_all_xineramas (MetaWindow *window, MetaRectangle *area)
 
void meta_window_get_current_tile_area (MetaWindow *window, MetaRectangle *tile_area)
 
MetaWindow * meta_window_find_tile_match (MetaWindow *window)
 
gboolean meta_window_same_application (MetaWindow *window, MetaWindow *other_window)
 
void meta_window_refresh_resize_popup (MetaWindow *window)
 
void meta_window_foreach_transient (MetaWindow *window, MetaWindowForeachFunc func, void *data)
 
void meta_window_foreach_ancestor (MetaWindow *window, MetaWindowForeachFunc func, void *data)
 
static gboolean find_ancestor_func (MetaWindow *window, void *data)
 
gboolean meta_window_is_ancestor_of_transient (MetaWindow *window, MetaWindow *transient)
 
static gboolean warp_grab_pointer (MetaWindow *window, MetaGrabOp grab_op, int *x, int *y)
 
void meta_window_begin_grab_op (MetaWindow *window, MetaGrabOp op, gboolean frame_action, guint32 timestamp)
 
void meta_window_update_keyboard_resize (MetaWindow *window, gboolean update_cursor)
 
void meta_window_update_keyboard_move (MetaWindow *window)
 
void meta_window_update_layer (MetaWindow *window)
 
void meta_window_stack_just_below (MetaWindow *window, MetaWindow *below_this_one)
 
void meta_window_set_user_time (MetaWindow *window, guint32 timestamp)
 
guint32 meta_window_get_user_time (MetaWindow *window)
 
void meta_window_set_demands_attention (MetaWindow *window)
 
void meta_window_unset_demands_attention (MetaWindow *window)
 
MetaFrame * meta_window_get_frame (MetaWindow *window)
 
static gboolean transient_has_focus (MetaWindow *window, void *data)
 
gboolean meta_window_appears_focused (MetaWindow *window)
 
gboolean meta_window_has_focus (MetaWindow *window)
 
gboolean meta_window_is_shaded (MetaWindow *window)
 
MetaRectangle * meta_window_get_rect (MetaWindow *window)
 
MetaScreen * meta_window_get_screen (MetaWindow *window)
 
MetaDisplay * meta_window_get_display (MetaWindow *window)
 
Window meta_window_get_xwindow (MetaWindow *window)
 
MetaWindow * meta_window_get_transient_for (MetaWindow *window)
 meta_window_get_transient_for: @window: a MetaWindow
 
gboolean meta_window_is_maximized (MetaWindow *window)
 
gboolean meta_window_is_tiled_left (MetaWindow *window)
 
gboolean meta_window_is_tiled_right (MetaWindow *window)
 
gboolean meta_window_is_client_decorated (MetaWindow *window)
 meta_window_is_client_decorated:
 
cairo_region_t * meta_window_get_frame_bounds (MetaWindow *window)
 meta_window_get_frame_bounds:
 
static void meta_window_finalize (GObject *object)
 
static void meta_window_class_init (MetaWindowClass *window_class)
 
static void meta_window_init (MetaWindow *window)
 

Variables

static int destroying_windows_disallowed = 0
 
static guint queue_idle [NUMBER_OF_QUEUES] = {0, 0, 0}
 
static GSList * queue_pending [NUMBER_OF_QUEUES] = {NULL, NULL, NULL}
 

Macro Definition Documentation

◆ _NET_WM_MOVERESIZE_CANCEL

#define _NET_WM_MOVERESIZE_CANCEL   11

◆ _NET_WM_MOVERESIZE_MOVE

#define _NET_WM_MOVERESIZE_MOVE   8

◆ _NET_WM_MOVERESIZE_MOVE_KEYBOARD

#define _NET_WM_MOVERESIZE_MOVE_KEYBOARD   10

◆ _NET_WM_MOVERESIZE_SIZE_BOTTOM

#define _NET_WM_MOVERESIZE_SIZE_BOTTOM   5

◆ _NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT

#define _NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT   6

◆ _NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT

#define _NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT   4

◆ _NET_WM_MOVERESIZE_SIZE_KEYBOARD

#define _NET_WM_MOVERESIZE_SIZE_KEYBOARD   9

◆ _NET_WM_MOVERESIZE_SIZE_LEFT

#define _NET_WM_MOVERESIZE_SIZE_LEFT   7

◆ _NET_WM_MOVERESIZE_SIZE_RIGHT

#define _NET_WM_MOVERESIZE_SIZE_RIGHT   3

◆ _NET_WM_MOVERESIZE_SIZE_TOP

#define _NET_WM_MOVERESIZE_SIZE_TOP   1

◆ _NET_WM_MOVERESIZE_SIZE_TOPLEFT

#define _NET_WM_MOVERESIZE_SIZE_TOPLEFT   0

◆ _NET_WM_MOVERESIZE_SIZE_TOPRIGHT

#define _NET_WM_MOVERESIZE_SIZE_TOPRIGHT   2

◆ DRAG_THRESHOLD_TO_SHAKE_THRESHOLD_FACTOR

#define DRAG_THRESHOLD_TO_SHAKE_THRESHOLD_FACTOR   2

◆ MAX_N_ACTIONS

#define MAX_N_ACTIONS   12

◆ N_INITIAL_PROPS

#define N_INITIAL_PROPS   22

Function Documentation

◆ __window_is_terminal()

gboolean __window_is_terminal ( MetaWindow *  window)

◆ adjust_for_gravity()

static void adjust_for_gravity ( MetaWindow *  window,
MetaFrameBorders *  borders,
gboolean  coords_assume_border,
int  gravity,
MetaRectangle *  rect 
)
static

◆ ancestor_is_minimized()

static gboolean ancestor_is_minimized ( MetaWindow *  window)
static

References FALSE, is_minimized_foreach(), and meta_window_foreach_ancestor().

Referenced by meta_window_showing_on_its_workspace().

Here is the call graph for this function:

◆ calculate_tiling_mode()

static MetaTileMode calculate_tiling_mode ( int  x,
int  y,
MetaWindow *  window,
const MetaXineramaScreenInfo *  monitor,
MetaRectangle  work_area,
int  shake_threshold 
)
static

◆ change_workspace_foreach()

static gboolean change_workspace_foreach ( MetaWindow *  window,
void *  data 
)
static

References meta_window_change_workspace_without_transients(), and TRUE.

Referenced by meta_window_change_workspace().

Here is the call graph for this function:

◆ check_ancestor_focus_appearance()

static void check_ancestor_focus_appearance ( MetaWindow *  window)
static

References check_ancestor_focus_appearance(), _MetaWindow::frame, meta_frame_queue_draw(), meta_prefs_get_attach_modal_dialogs(), meta_window_get_transient_for(), META_WINDOW_MODAL_DIALOG, and _MetaWindow::type.

Referenced by check_ancestor_focus_appearance(), and meta_window_notify_focus().

Here is the call graph for this function:

◆ check_moveresize_frequency()

static gboolean check_moveresize_frequency ( MetaWindow *  window,
gdouble *  remaining 
)
static

References _MetaWindow::disable_sync, _MetaWindow::display, FALSE, _MetaDisplay::grab_last_moveresize_time, META_DEBUG_RESIZING, time_diff(), and TRUE.

Referenced by update_resize().

Here is the call graph for this function:

◆ check_use_this_motion_notify()

static gboolean check_use_this_motion_notify ( MetaWindow *  window,
XEvent *  event 
)
static

References EventScannerData::count, EventScannerData::current_event, _MetaWindow::display, FALSE, find_last_time_predicate(), _MetaDisplay::grab_motion_notify_time, EventScannerData::last_time, META_DEBUG_RESIZING, TRUE, and _MetaDisplay::xdisplay.

Referenced by meta_window_handle_mouse_grab_op_event().

Here is the call graph for this function:

◆ ensure_mru_position_after()

static void ensure_mru_position_after ( MetaWindow *  window,
MetaWindow *  after_this_one 
)
static

◆ ensure_size_hints_satisfied()

static void ensure_size_hints_satisfied ( MetaRectangle *  rect,
const XSizeHints *  size_hints 
)
static

◆ find_ancestor_func()

static gboolean find_ancestor_func ( MetaWindow *  window,
void *  data 
)
static

◆ find_client_leader_func()

static gboolean find_client_leader_func ( MetaWindow *  ancestor,
void *  data 
)
static

References _MetaWindow::display, ClientLeaderData::leader, read_client_leader(), and _MetaWindow::xwindow.

Referenced by update_sm_hints().

Here is the call graph for this function:

◆ find_last_time_predicate()

static Bool find_last_time_predicate ( Display *  display,
XEvent *  xevent,
XPointer  arg 
)
static

◆ find_root_ancestor()

static gboolean find_root_ancestor ( MetaWindow *  window,
void *  data 
)
static

References TRUE.

Referenced by meta_window_find_root_ancestor().

◆ finish_minimize()

static void finish_minimize ( gpointer  data)
static

References _MetaScreen::active_workspace, _MetaWindow::display, _MetaWindow::has_focus, meta_display_get_current_time_roundtrip(), meta_window_hide(), meta_workspace_focus_default_window(), and _MetaWindow::screen.

Referenced by implement_showing().

Here is the call graph for this function:

◆ force_save_user_window_placement()

static void force_save_user_window_placement ( MetaWindow *  window)
static

Save the user_rect regardless of whether the window is maximized or fullscreen.

See save_user_window_placement() for most uses.

Parameters
windowStore current position of this window for future reference

References meta_window_get_client_root_coords(), and _MetaWindow::user_rect.

Referenced by meta_window_move_resize_internal(), meta_window_unmake_fullscreen(), and meta_window_unmaximize().

Here is the call graph for this function:

◆ get_modal_transient()

static MetaWindow * get_modal_transient ( MetaWindow *  window)
static

References _MetaWindow::display, meta_display_list_windows(), NULL, windows, _MetaWindow::wm_state_modal, _MetaWindow::xtransient_for, and _MetaWindow::xwindow.

Referenced by meta_window_focus().

Here is the call graph for this function:

◆ get_work_area_xinerama()

static void get_work_area_xinerama ( MetaWindow *  window,
MetaRectangle *  area,
int  which_xinerama 
)
static

◆ idle_calc_showing()

static gboolean idle_calc_showing ( gpointer  data)
static

◆ idle_move_resize()

static gboolean idle_move_resize ( gpointer  data)
static

References destroying_windows_disallowed, FALSE, META_DEBUG_GEOMETRY, meta_window_move_resize_now(), NULL, queue_idle, and queue_pending.

Referenced by meta_window_queue().

Here is the call graph for this function:

◆ idle_update_icon()

static gboolean idle_update_icon ( gpointer  data)
static

References destroying_windows_disallowed, FALSE, _MetaWindow::is_in_queues, META_DEBUG_GEOMETRY, meta_window_update_icon_now(), NULL, queue_idle, and queue_pending.

Referenced by meta_window_queue().

Here is the call graph for this function:

◆ implement_showing()

◆ intervening_user_event_occurred()

◆ invalidate_work_areas()

static void invalidate_work_areas ( MetaWindow *  window)
static

References meta_window_get_workspaces(), meta_workspace_invalidate_work_area(), and NULL.

Referenced by meta_window_free(), meta_window_hide(), meta_window_show(), and meta_window_update_struts().

Here is the call graph for this function:

◆ is_desktop_or_dock_foreach()

static gboolean is_desktop_or_dock_foreach ( MetaWindow *  window,
void *  data 
)
static

◆ is_minimized_foreach()

static gboolean is_minimized_foreach ( MetaWindow *  window,
void *  data 
)
static

References FALSE, _MetaWindow::minimized, and TRUE.

Referenced by ancestor_is_minimized().

◆ maybe_leave_show_desktop_mode()

static void maybe_leave_show_desktop_mode ( MetaWindow *  window)
static

References _MetaScreen::active_workspace, FALSE, is_desktop_or_dock_foreach(), meta_screen_minimize_all_on_active_workspace_except(), meta_screen_unshow_desktop(), meta_window_foreach_ancestor(), _MetaWindow::screen, and _MetaWorkspace::showing_desktop.

Referenced by meta_window_new_with_attrs(), and window_activate().

Here is the call graph for this function:

◆ menu_callback()

static void menu_callback ( MetaWindowMenu *  menu,
Display *  xdisplay,
Window  client_xwindow,
guint32  timestamp,
MetaMenuOp  op,
int  workspace_index,
gpointer  data 
)
static

References _MetaScreen::active_workspace, _MetaWindow::desc, meta_display_for_x_display(), meta_display_lookup_x_window(), META_GRAB_OP_KEYBOARD_MOVING, META_GRAB_OP_KEYBOARD_RESIZING_UNKNOWN, META_MAXIMIZE_HORIZONTAL, META_MAXIMIZE_VERTICAL, META_MENU_OP_ABOVE, META_MENU_OP_DELETE, META_MENU_OP_MAXIMIZE, META_MENU_OP_MINIMIZE, META_MENU_OP_MOVE, META_MENU_OP_MOVE_DOWN, META_MENU_OP_MOVE_LEFT, META_MENU_OP_MOVE_RIGHT, META_MENU_OP_MOVE_UP, META_MENU_OP_NONE, META_MENU_OP_RECOVER, META_MENU_OP_RESIZE, META_MENU_OP_SHADE, META_MENU_OP_STICK, META_MENU_OP_UNABOVE, META_MENU_OP_UNMAXIMIZE, META_MENU_OP_UNSHADE, META_MENU_OP_UNSTICK, META_MENU_OP_WORKSPACES, META_MOTION_DOWN, META_MOTION_LEFT, META_MOTION_RIGHT, META_MOTION_UP, meta_screen_get_workspace_by_index(), meta_ui_window_menu_free(), meta_warning(), meta_window_begin_grab_op(), meta_window_change_workspace(), meta_window_delete(), meta_window_make_above(), meta_window_maximize(), meta_window_minimize(), meta_window_raise(), meta_window_shade(), meta_window_shove_titlebar_onscreen(), meta_window_stick(), meta_window_unmake_above(), meta_window_unmaximize(), meta_window_unshade(), meta_window_unstick(), meta_workspace_activate(), meta_workspace_get_neighbor(), NULL, _MetaWindow::screen, TRUE, _MetaDisplay::window_menu, _MetaDisplay::window_with_menu, and _MetaWindow::wm_state_above.

Referenced by meta_window_show_menu().

Here is the call graph for this function:

◆ meta_window_activate()

void meta_window_activate ( MetaWindow *  window,
guint32  timestamp 
)

References META_CLIENT_TYPE_PAGER, NULL, _MetaWindow::on_all_workspaces, window_activate(), and _MetaWindow::workspace.

Referenced by do_choose_window(), meta_window_present_delete_dialog(), and process_tab_grab().

Here is the call graph for this function:

◆ meta_window_activate_with_workspace()

void meta_window_activate_with_workspace ( MetaWindow *  window,
guint32  timestamp,
MetaWorkspace *  workspace 
)

References META_CLIENT_TYPE_APPLICATION, and window_activate().

Referenced by reload_net_startup_id().

Here is the call graph for this function:

◆ meta_window_appears_focused()

gboolean meta_window_appears_focused ( MetaWindow *  window)

References FALSE, _MetaWindow::has_focus, meta_prefs_get_attach_modal_dialogs(), META_WINDOW_DOCK, meta_window_foreach_transient(), META_WINDOW_SPLASHSCREEN, transient_has_focus(), TRUE, and _MetaWindow::type.

Referenced by meta_frame_get_flags(), set_net_wm_state(), and transient_has_focus().

Here is the call graph for this function:

◆ meta_window_appears_focused_changed()

static void meta_window_appears_focused_changed ( MetaWindow *  window)
static

References _MetaWindow::frame, meta_frame_queue_draw(), meta_window_frame_size_changed(), and set_net_wm_state().

Referenced by meta_window_notify_focus().

Here is the call graph for this function:

◆ meta_window_apply_session_info()

static void meta_window_apply_session_info ( MetaWindow *  window,
const MetaWindowSessionInfo *  info 
)
static

◆ meta_window_begin_grab_op()

void meta_window_begin_grab_op ( MetaWindow *  window,
MetaGrabOp  op,
gboolean  frame_action,
guint32  timestamp 
)

References _MetaWindow::display, FALSE, meta_display_begin_grab_op(), _MetaWindow::screen, and warp_grab_pointer().

Referenced by handle_begin_move(), handle_begin_resize(), menu_callback(), meta_window_client_message(), and meta_window_show().

Here is the call graph for this function:

◆ meta_window_begin_wireframe()

◆ meta_window_calc_showing()

void meta_window_calc_showing ( MetaWindow *  window)

References implement_showing(), and meta_window_should_be_showing().

Referenced by idle_calc_showing(), meta_display_begin_grab_op(), meta_display_end_grab_op(), and meta_window_flush_calc_showing().

Here is the call graph for this function:

◆ meta_window_can_tile()

gboolean meta_window_can_tile ( MetaWindow *  window)

◆ meta_window_can_tile_maximized()

static gboolean meta_window_can_tile_maximized ( MetaWindow *  window)
static

◆ meta_window_change_workspace()

◆ meta_window_change_workspace_without_transients()

static void meta_window_change_workspace_without_transients ( MetaWindow *  window,
MetaWorkspace *  workspace 
)
static

References _MetaWindow::desc, meta_window_unstick(), meta_workspace_add_window(), meta_workspace_index(), meta_workspace_remove_window(), _MetaWindow::on_all_workspaces, and _MetaWindow::workspace.

Referenced by change_workspace_foreach(), and meta_window_change_workspace().

Here is the call graph for this function:

◆ meta_window_class_init()

static void meta_window_class_init ( MetaWindowClass *  window_class)
static

References meta_window_finalize().

Here is the call graph for this function:

◆ meta_window_client_message()

gboolean meta_window_client_message ( MetaWindow *  window,
XEvent *  event 
)

References _NET_WM_MOVERESIZE_CANCEL, _NET_WM_MOVERESIZE_MOVE, _NET_WM_MOVERESIZE_MOVE_KEYBOARD, _NET_WM_MOVERESIZE_SIZE_BOTTOM, _NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT, _NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT, _NET_WM_MOVERESIZE_SIZE_KEYBOARD, _NET_WM_MOVERESIZE_SIZE_LEFT, _NET_WM_MOVERESIZE_SIZE_RIGHT, _NET_WM_MOVERESIZE_SIZE_TOP, _NET_WM_MOVERESIZE_SIZE_TOPLEFT, _NET_WM_MOVERESIZE_SIZE_TOPRIGHT, _NET_WM_STATE_ADD, _NET_WM_STATE_TOGGLE, _MetaWindow::desc, _MetaWindow::display, FALSE, _MetaWindow::fullscreen, _MetaWindow::has_fullscreen_func, _MetaWindow::has_maximize_func, _MetaWindow::has_move_func, _MetaWindow::has_resize_func, _MetaWindow::has_shade_func, _MetaWindow::maximized_horizontally, _MetaWindow::maximized_vertically, META_CLIENT_TYPE_MAX_RECOGNIZED, META_CLIENT_TYPE_UNKNOWN, META_DEBUG_WINDOW_OPS, meta_display_begin_grab_op(), meta_display_end_grab_op(), meta_display_get_current_time(), meta_display_get_current_time_roundtrip(), meta_error_trap_pop(), meta_error_trap_pop_with_return(), meta_error_trap_push(), META_GRAB_OP_KEYBOARD_MOVING, META_GRAB_OP_KEYBOARD_RESIZING_UNKNOWN, 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_is_verbose(), META_MAXIMIZE_HORIZONTAL, META_MAXIMIZE_VERTICAL, meta_prefs_get_raise_on_click(), META_QUEUE_MOVE_RESIZE, meta_screen_get_workspace_by_index(), meta_warning(), meta_window_begin_grab_op(), meta_window_change_workspace(), meta_window_delete(), meta_window_make_fullscreen(), meta_window_maximize(), meta_window_minimize(), meta_window_move_resize_request(), meta_window_queue(), meta_window_raise(), meta_window_set_demands_attention(), meta_window_shade(), meta_window_show_menu(), meta_window_stick(), meta_window_unmake_fullscreen(), meta_window_unmaximize(), meta_window_unset_demands_attention(), meta_window_unshade(), meta_window_unstick(), meta_window_update_fullscreen_monitors(), meta_window_update_layer(), meta_XFree, NULL, _MetaWindow::on_all_workspaces, recalc_window_features(), recalc_window_type(), _MetaWindow::screen, set_net_wm_state(), _MetaWindow::shaded, _MetaWindow::size_hints, _MetaWindow::skip_pager, _MetaWindow::skip_taskbar, TRUE, window_activate(), _MetaWindow::wm_state_above, _MetaWindow::wm_state_below, _MetaWindow::wm_state_demands_attention, _MetaWindow::wm_state_modal, _MetaWindow::wm_state_skip_pager, _MetaWindow::wm_state_skip_taskbar, _MetaDisplay::xdisplay, and _MetaWindow::xwindow.

Referenced by event_callback().

Here is the call graph for this function:

◆ meta_window_configure_request()

gboolean meta_window_configure_request ( MetaWindow *  window,
XEvent *  event 
)

◆ meta_window_end_wireframe()

void meta_window_end_wireframe ( MetaWindow *  window)

References _MetaWindow::display, _MetaDisplay::grab_window, _MetaDisplay::grab_wireframe_last_display_height, _MetaDisplay::grab_wireframe_last_display_width, _MetaDisplay::grab_wireframe_last_xor_rect, meta_effects_end_wireframe(), and _MetaWindow::screen.

Referenced by meta_display_end_grab_op().

Here is the call graph for this function:

◆ meta_window_finalize()

◆ meta_window_find_root_ancestor()

MetaWindow * meta_window_find_root_ancestor ( MetaWindow *  window)

References find_root_ancestor(), and meta_window_foreach_ancestor().

Referenced by meta_window_compute_group(), and meta_window_raise().

Here is the call graph for this function:

◆ meta_window_find_tile_match()

◆ meta_window_flush_calc_showing()

static void meta_window_flush_calc_showing ( MetaWindow *  window)
static

References _MetaWindow::is_in_queues, META_QUEUE_CALC_SHOWING, meta_window_calc_showing(), and meta_window_unqueue().

Referenced by meta_window_focus().

Here is the call graph for this function:

◆ meta_window_focus()

◆ meta_window_foreach_ancestor()

◆ meta_window_foreach_transient()

void meta_window_foreach_transient ( MetaWindow *  window,
MetaWindowForeachFunc  func,
void *  data 
)

◆ meta_window_frame_size_changed()

void meta_window_frame_size_changed ( MetaWindow *  window)

References _MetaWindow::frame, and meta_frame_clear_cached_borders().

Referenced by meta_window_appears_focused_changed(), meta_window_make_above(), meta_window_maximize_internal(), meta_window_shade(), meta_window_unmake_above(), meta_window_unmaximize(), meta_window_unshade(), recalc_window_features(), window_stick_impl(), and window_unstick_impl().

Here is the call graph for this function:

◆ meta_window_free()

void meta_window_free ( MetaWindow *  window,
guint32  timestamp 
)

References _MetaScreen::active_workspace, _MetaWindow::border_width, _MetaDisplay::compositor, _MetaWindow::desc, destroying_windows_disallowed, _MetaWindow::display, _MetaDisplay::expected_focus_window, FALSE, _MetaDisplay::focus_window, _MetaWindow::frame, _MetaWindow::fullscreen, _MetaDisplay::grab_window, _MetaWindow::has_focus, invalidate_work_areas(), _MetaWindow::maximized_horizontally, _MetaWindow::maximized_vertically, meta_bug(), meta_compositor_free_window(), meta_compositor_set_active_window(), META_DEBUG_FOCUS, META_DEBUG_WORKAREA, meta_display_end_grab_op(), META_DISPLAY_HAS_SHAPE, meta_display_ungrab_focus_window_button(), meta_display_ungrab_window_buttons(), meta_display_unregister_x_window(), meta_error_trap_pop(), meta_error_trap_push(), meta_group_update_layers(), META_QUEUE_CALC_SHOWING, META_QUEUE_MOVE_RESIZE, META_QUEUE_UPDATE_ICON, meta_stack_freeze(), meta_stack_remove(), meta_stack_thaw(), meta_ui_window_menu_free(), meta_window_destroy_frame(), meta_window_free_delete_dialog(), meta_window_get_group(), meta_window_shutdown_group(), meta_window_ungrab_keys(), meta_window_unqueue(), meta_workspace_focus_default_window(), meta_workspace_remove_window(), _MetaWindow::minimized, _MetaWorkspace::mru_list, NULL, _MetaWindow::screen, send_configure_notify(), set_wm_state(), _MetaScreen::stack, _MetaWindow::struts, TRUE, _MetaWindow::unmanaging, unmaximize_window_before_freeing(), _MetaWindow::user_time_window, _MetaDisplay::window_menu, _MetaDisplay::window_with_menu, _MetaWorkspace::windows, _MetaWindow::withdrawn, _MetaWindow::workspace, _MetaScreen::workspaces, _MetaDisplay::xdisplay, and _MetaWindow::xwindow.

Referenced by event_callback(), and meta_display_unmanage_windows_for_screen().

Here is the call graph for this function:

◆ meta_window_get_client_root_coords()

◆ meta_window_get_current_tile_area()

◆ meta_window_get_desktop_id()

static gchar * meta_window_get_desktop_id ( MetaWindow *  window)
static

◆ meta_window_get_display()

MetaDisplay * meta_window_get_display ( MetaWindow *  window)

References _MetaWindow::display.

◆ meta_window_get_frame()

MetaFrame * meta_window_get_frame ( MetaWindow *  window)

References _MetaWindow::frame.

◆ meta_window_get_frame_bounds()

cairo_region_t * meta_window_get_frame_bounds ( MetaWindow *  window)

meta_window_get_frame_bounds:

Gets a region representing the outer bounds of the window's frame.

Return value: (transfer none) (allow-none): a #cairo_region_t holding the outer bounds of the window, or NULL if the window doesn't have a frame.

References _MetaWindow::frame, _MetaWindow::frame_bounds, and meta_frame_get_frame_bounds().

Here is the call graph for this function:

◆ meta_window_get_geometry()

void meta_window_get_geometry ( MetaWindow *  window,
int *  x,
int *  y,
int *  width,
int *  height 
)

References _MetaRectangle::height, meta_window_get_gravity_position(), _MetaWindow::rect, _MetaWindow::size_hints, and _MetaRectangle::width.

Here is the call graph for this function:

◆ meta_window_get_gravity_position()

void meta_window_get_gravity_position ( MetaWindow *  window,
int  gravity,
int *  root_x,
int *  root_y 
)

◆ meta_window_get_icon_geometry()

gboolean meta_window_get_icon_geometry ( MetaWindow *  window,
MetaRectangle *  rect 
)

References _MetaWindow::desc, _MetaWindow::display, FALSE, _MetaRectangle::height, meta_prop_get_cardinal_list(), meta_XFree, NULL, TRUE, _MetaRectangle::width, _MetaRectangle::x, _MetaWindow::xwindow, and _MetaRectangle::y.

Referenced by implement_showing(), meta_screen_ensure_tab_popup(), and meta_window_show().

Here is the call graph for this function:

◆ meta_window_get_input_rect()

void meta_window_get_input_rect ( const MetaWindow *  window,
MetaRectangle *  rect 
)

meta_window_get_input_rect: @window: a MetaWindow @rect: (out): pointer to an allocated MetaRectangle

Gets the rectangle that bounds @window that is responsive to mouse events. This includes decorations - the visible portion of its border - and (if present) any invisible area that we make make responsive to mouse clicks in order to allow convenient border dragging.

References _MetaWindow::frame, _MetaFrame::rect, and _MetaWindow::rect.

◆ meta_window_get_net_wm_desktop()

unsigned long meta_window_get_net_wm_desktop ( MetaWindow *  window)

References meta_workspace_index(), _MetaWindow::on_all_workspaces, and _MetaWindow::workspace.

Referenced by meta_core_get(), meta_window_set_current_workspace_hint(), and meta_window_show_menu().

Here is the call graph for this function:

◆ meta_window_get_outer_rect()

◆ meta_window_get_position()

◆ meta_window_get_rect()

MetaRectangle * meta_window_get_rect ( MetaWindow *  window)

References _MetaWindow::rect.

◆ meta_window_get_screen()

MetaScreen * meta_window_get_screen ( MetaWindow *  window)

References _MetaWindow::screen.

◆ meta_window_get_startup_id()

const char * meta_window_get_startup_id ( MetaWindow *  window)

References meta_group_get_startup_id(), meta_window_get_group(), NULL, and _MetaWindow::startup_id.

Referenced by meta_screen_apply_startup_properties().

Here is the call graph for this function:

◆ meta_window_get_transient_for()

MetaWindow * meta_window_get_transient_for ( MetaWindow *  window)

meta_window_get_transient_for: @window: a MetaWindow

Returns the MetaWindow for the window that is pointed to by the WM_TRANSIENT_FOR hint on this window (see XGetTransientForHint() or XSetTransientForHint()). Marco keeps transient windows above their parents. A typical usage of this hint is for a dialog that wants to stay above its associated window.

Return value: (transfer none): the window this window is transient for, or NULL if the WM_TRANSIENT_FOR hint is unset or does not point to a toplevel window that Marco knows about.

References _MetaWindow::display, meta_display_lookup_x_window(), NULL, and _MetaWindow::xtransient_for.

Referenced by check_ancestor_focus_appearance(), constrain_modal_dialog(), meta_core_get(), move_attached_dialog(), prefs_changed_callback(), and recalc_window_features().

Here is the call graph for this function:

◆ meta_window_get_user_time()

guint32 meta_window_get_user_time ( MetaWindow *  window)

References _MetaWindow::net_wm_user_time.

Referenced by mru_cmp().

◆ meta_window_get_wireframe_geometry()

◆ meta_window_get_work_area_all_xineramas()

void meta_window_get_work_area_all_xineramas ( MetaWindow *  window,
MetaRectangle *  area 
)

References _MetaWindow::desc, _MetaRectangle::height, META_DEBUG_WORKAREA, meta_rectangle_intersect(), meta_window_get_workspaces(), meta_workspace_get_work_area_all_xineramas(), NULL, _MetaScreen::rect, _MetaWindow::screen, _MetaRectangle::width, _MetaRectangle::x, and _MetaRectangle::y.

Referenced by handle_move_to_corner_backend().

Here is the call graph for this function:

◆ meta_window_get_work_area_current_xinerama()

void meta_window_get_work_area_current_xinerama ( MetaWindow *  window,
MetaRectangle *  area 
)

References meta_screen_get_xinerama_for_window(), meta_window_get_work_area_for_xinerama(), NULL, _MetaXineramaScreenInfo::number, and _MetaWindow::screen.

Referenced by find_most_freespace().

Here is the call graph for this function:

◆ meta_window_get_work_area_for_xinerama()

void meta_window_get_work_area_for_xinerama ( MetaWindow *  window,
int  which_xinerama,
MetaRectangle *  area 
)

References get_work_area_xinerama().

Referenced by find_first_fit(), find_next_cascade(), handle_move_to_center(), meta_window_can_tile(), meta_window_get_current_tile_area(), meta_window_get_work_area_current_xinerama(), meta_window_place(), place_window_if_needed(), setup_constraint_info(), update_move(), and update_resize().

Here is the call graph for this function:

◆ meta_window_get_workspace()

◆ meta_window_get_workspaces()

◆ meta_window_get_xor_rect()

void meta_window_get_xor_rect ( MetaWindow *  window,
const MetaRectangle *  grab_wireframe_rect,
MetaRectangle *  xor_rect 
)

◆ meta_window_get_xwindow()

Window meta_window_get_xwindow ( MetaWindow *  window)

References _MetaWindow::xwindow.

◆ meta_window_handle_mouse_grab_op_event()

◆ meta_window_has_focus()

gboolean meta_window_has_focus ( MetaWindow *  window)

◆ meta_window_hide()

◆ meta_window_init()

static void meta_window_init ( MetaWindow *  window)
static

◆ meta_window_is_ancestor_of_transient()

gboolean meta_window_is_ancestor_of_transient ( MetaWindow *  window,
MetaWindow *  transient 
)

References FindAncestorData::ancestor, FALSE, find_ancestor_func(), FindAncestorData::found, and meta_window_foreach_ancestor().

Referenced by create_constraints(), meta_window_foreach_transient(), meta_window_show(), and window_state_on_map().

Here is the call graph for this function:

◆ meta_window_is_client_decorated()

gboolean meta_window_is_client_decorated ( MetaWindow *  window)

meta_window_is_client_decorated:

Check if if the window has decorations drawn by the client. (window->decorated refers only to whether we should add decorations)

References _MetaWindow::has_custom_frame_extents.

Referenced by meta_window_move_resize_request().

◆ meta_window_is_maximized()

gboolean meta_window_is_maximized ( MetaWindow *  window)

References META_WINDOW_MAXIMIZED.

◆ meta_window_is_shaded()

gboolean meta_window_is_shaded ( MetaWindow *  window)

References _MetaWindow::shaded.

◆ meta_window_is_tiled_left()

gboolean meta_window_is_tiled_left ( MetaWindow *  window)

◆ meta_window_is_tiled_right()

gboolean meta_window_is_tiled_right ( MetaWindow *  window)

◆ meta_window_located_on_workspace()

◆ meta_window_lower()

void meta_window_lower ( MetaWindow *  window)

References _MetaWindow::desc, META_DEBUG_WINDOW_OPS, meta_stack_lower(), _MetaWindow::screen, and _MetaScreen::stack.

Referenced by event_callback(), handle_lower(), handle_raise_or_lower(), meta_core_user_lower_and_unfocus(), and meta_window_configure_request().

Here is the call graph for this function:

◆ meta_window_make_above()

void meta_window_make_above ( MetaWindow *  window)

References meta_window_frame_size_changed(), meta_window_raise(), meta_window_update_layer(), set_net_wm_state(), TRUE, and _MetaWindow::wm_state_above.

Referenced by handle_toggle_above(), menu_callback(), and meta_core_make_above().

Here is the call graph for this function:

◆ meta_window_make_fullscreen()

void meta_window_make_fullscreen ( MetaWindow *  window)

References _MetaWindow::fullscreen, META_QUEUE_MOVE_RESIZE, meta_window_make_fullscreen_internal(), and meta_window_queue().

Referenced by handle_toggle_fullscreen(), and meta_window_client_message().

Here is the call graph for this function:

◆ meta_window_make_fullscreen_internal()

◆ meta_window_maximize()

◆ meta_window_maximize_internal()

◆ meta_window_minimize()

◆ meta_window_move()

void meta_window_move ( MetaWindow *  window,
gboolean  user_op,
int  root_x_nw,
int  root_y_nw 
)

References _MetaRectangle::height, META_IS_MOVE_ACTION, META_IS_USER_ACTION, meta_window_move_resize_internal(), _MetaWindow::rect, and _MetaRectangle::width.

Referenced by meta_core_user_move(), meta_display_end_grab_op(), move_attached_dialog(), prefs_changed_callback(), process_keyboard_move_grab(), and update_move().

Here is the call graph for this function:

◆ meta_window_move_resize()

void meta_window_move_resize ( MetaWindow *  window,
gboolean  user_op,
int  root_x_nw,
int  root_y_nw,
int  w,
int  h 
)

◆ meta_window_move_resize_internal()

static void meta_window_move_resize_internal ( MetaWindow *  window,
MetaMoveResizeFlags  flags,
int  resize_gravity,
int  root_x_nw,
int  root_y_nw,
int  w,
int  h 
)
static

References adjust_for_gravity(), _MetaWindow::border_width, _MetaFrame::bottom_height, _MetaFrame::child_x, _MetaFrame::child_y, _MetaDisplay::compositor, _MetaWindow::constructing, _MetaWindow::desc, _MetaWindow::display, FALSE, _MetaWindow::force_save_user_rect, force_save_user_window_placement(), _MetaWindow::frame, _MetaWindow::frame_bounds, _MetaWindow::fullscreen, _MetaDisplay::grab_wireframe_active, _MetaRectangle::height, meta_compositor_set_updates(), META_DEBUG_GEOMETRY, META_DO_GRAVITY_ADJUST, meta_error_trap_pop(), meta_error_trap_push(), meta_frame_calc_borders(), meta_frame_sync_to_window(), META_IS_CONFIGURE_REQUEST, META_IS_MOVE_ACTION, META_IS_RESIZE_ACTION, META_IS_USER_ACTION, meta_prefs_get_attach_modal_dialogs(), META_QUEUE_MOVE_RESIZE, meta_rectangle_resize_with_gravity(), meta_window_constrain(), meta_window_foreach_transient(), meta_window_get_client_root_coords(), meta_window_get_position(), meta_window_refresh_resize_popup(), meta_window_set_gravity(), meta_window_unqueue(), meta_window_update_wireframe(), move_attached_dialog(), NULL, _MetaWindow::placed, _MetaFrame::rect, _MetaWindow::rect, _MetaFrame::right_width, save_user_window_placement(), send_configure_notify(), _MetaWindow::shaded, _MetaWindow::size_hints, static_gravity_works(), _MetaFrameBorders::total, TRUE, update_net_frame_extents(), _MetaWindow::user_rect, _MetaRectangle::width, _MetaRectangle::x, _MetaDisplay::xdisplay, _MetaWindow::xwindow, and _MetaRectangle::y.

Referenced by meta_window_apply_session_info(), meta_window_move(), meta_window_move_resize(), meta_window_move_resize_request(), meta_window_new_with_attrs(), meta_window_resize(), and meta_window_resize_with_gravity().

Here is the call graph for this function:

◆ meta_window_move_resize_now()

static void meta_window_move_resize_now ( MetaWindow *  window)
static

References FALSE, _MetaRectangle::height, meta_window_move_resize(), _MetaWindow::user_rect, _MetaRectangle::width, _MetaRectangle::x, and _MetaRectangle::y.

Referenced by idle_move_resize(), and meta_window_show().

Here is the call graph for this function:

◆ meta_window_move_resize_request()

void meta_window_move_resize_request ( MetaWindow *  window,
guint  value_mask,
int  gravity,
int  new_x,
int  new_y,
int  new_width,
int  new_height 
)

◆ meta_window_move_to_monitor()

void meta_window_move_to_monitor ( MetaWindow *  window,
const MetaXineramaScreenInfo *  from_monitor,
const MetaXineramaScreenInfo *  to_monitor 
)

◆ meta_window_new()

MetaWindow * meta_window_new ( MetaDisplay *  display,
Window  xwindow,
gboolean  must_be_viewable 
)

References FALSE, meta_display_grab(), meta_display_ungrab(), meta_error_trap_pop(), meta_error_trap_pop_with_return(), meta_error_trap_push(), meta_window_new_with_attrs(), NULL, TRUE, and _MetaDisplay::xdisplay.

Referenced by event_callback().

Here is the call graph for this function:

◆ meta_window_new_with_attrs()

MetaWindow * meta_window_new_with_attrs ( MetaDisplay *  display,
Window  xwindow,
gboolean  must_be_viewable,
XWindowAttributes *  attrs 
)

References _MetaScreen::active_workspace, _MetaWindow::all_keys_grabbed, _MetaWindow::always_sticky, _MetaWindow::bamf_desktop_file, _MetaWindow::border_width, _MetaWindow::calc_placement, _MetaWindow::colormap, _MetaWindow::constructing, _MetaWindow::custom_frame_extents, _MetaWindow::decorated, _MetaWindow::denied_focus_and_not_transient, _MetaWindow::depth, _MetaWindow::desc, _MetaWindow::dialog_pid, _MetaWindow::disable_sync, _MetaWindow::display, _MetaDisplay::display_opening, FALSE, _MetaWindow::force_save_user_rect, _MetaWindow::frame, _MetaWindow::frame_bounds, _MetaWindow::fullscreen, _MetaWindow::fullscreen_after_placement, _MetaWindow::fullscreen_monitors, _MetaWindow::grab_on_frame, _MetaWindow::group, _MetaWindow::gtk_application_id, _MetaWindow::gtk_theme_variant, _MetaWindow::has_close_func, _MetaWindow::has_custom_frame_extents, _MetaWindow::has_focus, _MetaWindow::has_fullscreen_func, _MetaWindow::has_maximize_func, _MetaWindow::has_minimize_func, _MetaWindow::has_move_func, _MetaWindow::has_resize_func, _MetaWindow::has_shade_func, _MetaWindow::has_shape, _MetaWindow::have_focus_click_grab, _MetaRectangle::height, _MetaWindow::icon, _MetaWindow::icon_cache, _MetaWindow::icon_name, _MetaWindow::iconic, _MetaWindow::initial_timestamp, _MetaWindow::initial_timestamp_set, _MetaWindow::initial_workspace, _MetaWindow::initial_workspace_set, _MetaWindow::initially_iconic, _MetaWindow::input, _MetaWindow::is_in_queues, _MetaWindow::keys_grabbed, _MetaWindow::layer, _MetaWindow::mapped, _MetaWindow::maximize_horizontally_after_placement, _MetaWindow::maximize_vertically_after_placement, _MetaWindow::maximized_horizontally, _MetaWindow::maximized_vertically, maybe_leave_show_desktop_mode(), META_DEBUG_PLACEMENT, META_DEBUG_SHAPES, meta_display_get_current_time_roundtrip(), meta_display_grab(), meta_display_grab_focus_window_button(), meta_display_grab_window_buttons(), META_DISPLAY_HAS_SHAPE, meta_display_lookup_x_window(), meta_display_register_x_window(), meta_display_ungrab(), meta_display_xwindow_is_a_no_focus_window(), meta_error_trap_pop(), meta_error_trap_pop_with_return(), meta_error_trap_push(), meta_icon_cache_init(), META_IS_CONFIGURE_REQUEST, META_IS_MOVE_ACTION, META_IS_RESIZE_ACTION, META_LAYER_LAST, meta_prop_get_cardinal_with_atom_type(), META_QUEUE_CALC_SHOWING, meta_screen_apply_startup_properties(), meta_screen_get_workspace_by_index(), meta_set_normal_hints(), meta_stack_add(), meta_stack_freeze(), meta_stack_thaw(), META_TILE_NONE, META_TYPE_WINDOW, meta_window_apply_session_info(), meta_window_compute_group(), META_WINDOW_DESKTOP, META_WINDOW_DOCK, meta_window_ensure_frame(), meta_window_foreach_transient(), meta_window_grab_keys(), meta_window_lookup_saved_state(), meta_window_move_resize_internal(), META_WINDOW_NORMAL, meta_window_queue(), meta_window_release_saved_state(), meta_window_reload_properties(), meta_window_set_current_workspace_hint(), meta_window_set_user_time(), meta_window_update_icon_now(), meta_window_update_net_wm_type(), meta_window_update_role(), meta_window_update_struts(), meta_workspace_add_window(), _MetaWindow::mini_icon, _MetaWindow::minimize_after_placement, _MetaWindow::minimized, _MetaWindow::move_after_placement, _MetaWindow::mwm_border_only, _MetaWindow::mwm_decorated, _MetaWindow::mwm_has_close_func, _MetaWindow::mwm_has_maximize_func, _MetaWindow::mwm_has_minimize_func, _MetaWindow::mwm_has_move_func, _MetaWindow::mwm_has_resize_func, N_INITIAL_PROPS, _MetaWindow::need_reread_icon, _MetaWindow::net_wm_pid, _MetaWindow::net_wm_user_time, _MetaWindow::net_wm_user_time_set, NULL, _MetaWindow::on_all_workspaces, _MetaWindow::placed, queue_calc_showing_func(), _MetaWindow::rect, _MetaWindow::require_fully_onscreen, _MetaWindow::require_on_single_xinerama, _MetaWindow::require_titlebar_visible, _MetaWindow::res_class, _MetaWindow::res_name, _MetaWindow::role, _MetaWindow::saved_rect, _MetaWindow::screen, _MetaDisplay::screens, set_net_wm_state(), set_wm_state(), _MetaWindow::shaded, _MetaWindow::shaken_loose, _MetaWindow::showing_for_first_time, _MetaWindow::size_hints, _MetaWindow::skip_pager, _MetaWindow::skip_taskbar, _MetaWindow::sm_client_id, _MetaScreen::stack, _MetaWindow::stack_position, _MetaWindow::startup_id, _MetaWindow::struts, _MetaWindow::tab_unminimized, _MetaWindow::take_focus, _MetaWindow::tile_mode, _MetaWindow::tile_monitor_number, _MetaWindow::tile_resized, _MetaWindow::title, _MetaWindow::transient_parent_is_root_window, TRUE, _MetaWindow::type, _MetaWindow::type_atom, _MetaWindow::unmanaging, _MetaWindow::unmaps_pending, unminimize_window_and_all_transient_parents(), update_sm_hints(), _MetaWindow::user_rect, _MetaWindow::user_time_window, _MetaWindow::using_net_wm_icon_name, _MetaWindow::using_net_wm_name, _MetaWindow::using_net_wm_visible_icon_name, _MetaWindow::using_net_wm_visible_name, _MetaWindow::was_minimized, _MetaRectangle::width, _MetaWindow::withdrawn, _MetaWindow::wm_client_machine, _MetaWindow::wm_hints_mask, _MetaWindow::wm_hints_pixmap, _MetaWindow::wm_state_above, _MetaWindow::wm_state_below, _MetaWindow::wm_state_demands_attention, _MetaWindow::wm_state_modal, _MetaWindow::wm_state_skip_pager, _MetaWindow::wm_state_skip_taskbar, _MetaWindow::workspace, _MetaRectangle::x, _MetaWindow::xclient_leader, _MetaDisplay::xdisplay, _MetaWindow::xgroup_leader, _MetaScreen::xroot, _MetaWindow::xtransient_for, _MetaWindow::xvisual, _MetaWindow::xwindow, and _MetaRectangle::y.

Referenced by meta_screen_manage_all_windows(), and meta_window_new().

◆ meta_window_notify_focus()

◆ meta_window_property_notify()

gboolean meta_window_property_notify ( MetaWindow *  window,
XEvent *  event 
)

References process_property_notify().

Referenced by event_callback().

Here is the call graph for this function:

◆ meta_window_queue()

◆ meta_window_raise()

◆ meta_window_recalc_features()

void meta_window_recalc_features ( MetaWindow *  window)

References recalc_window_features().

Referenced by meta_screen_resize_func(), prefs_changed_callback(), reload_mwm_hints(), and reload_normal_hints().

Here is the call graph for this function:

◆ meta_window_recalc_window_type()

void meta_window_recalc_window_type ( MetaWindow *  window)

References recalc_window_type().

Referenced by meta_window_update_net_wm_type(), reload_net_wm_state(), and reload_transient_for().

Here is the call graph for this function:

◆ meta_window_refresh_resize_popup()

◆ meta_window_resize()

void meta_window_resize ( MetaWindow *  window,
gboolean  user_op,
int  w,
int  h 
)

References META_IS_RESIZE_ACTION, META_IS_USER_ACTION, meta_window_get_position(), and meta_window_move_resize_internal().

Here is the call graph for this function:

◆ meta_window_resize_with_gravity()

void meta_window_resize_with_gravity ( MetaWindow *  window,
gboolean  user_op,
int  w,
int  h,
int  gravity 
)

References META_IS_RESIZE_ACTION, META_IS_USER_ACTION, meta_window_get_position(), and meta_window_move_resize_internal().

Referenced by meta_core_user_resize(), meta_display_end_grab_op(), process_keyboard_resize_grab(), and update_resize().

Here is the call graph for this function:

◆ meta_window_same_application()

gboolean meta_window_same_application ( MetaWindow *  window,
MetaWindow *  other_window 
)

References meta_window_get_group(), and NULL.

Referenced by avoid_being_obscured_as_second_modal_dialog(), event_callback(), and meta_window_configure_request().

Here is the call graph for this function:

◆ meta_window_same_client()

static gboolean meta_window_same_client ( MetaWindow *  window,
MetaWindow *  other_window 
)
static

◆ meta_window_save_rect()

◆ meta_window_send_icccm_message()

void meta_window_send_icccm_message ( MetaWindow *  window,
Atom  atom,
guint32  timestamp 
)

References _MetaWindow::display, FALSE, meta_error_trap_pop(), meta_error_trap_push(), _MetaDisplay::xdisplay, and _MetaWindow::xwindow.

Referenced by meta_display_ping_window(), meta_window_delete(), and meta_window_focus().

Here is the call graph for this function:

◆ meta_window_set_current_workspace_hint()

void meta_window_set_current_workspace_hint ( MetaWindow *  window)

◆ meta_window_set_demands_attention()

◆ meta_window_set_gravity()

void meta_window_set_gravity ( MetaWindow *  window,
int  gravity 
)

References _MetaWindow::desc, _MetaWindow::display, FALSE, meta_error_trap_pop(), meta_error_trap_push(), _MetaDisplay::xdisplay, and _MetaWindow::xwindow.

Referenced by meta_window_move_resize_internal().

Here is the call graph for this function:

◆ meta_window_set_user_time()

void meta_window_set_user_time ( MetaWindow *  window,
guint32  timestamp 
)

◆ meta_window_shade()

void meta_window_shade ( MetaWindow *  window,
guint32  timestamp 
)

◆ meta_window_should_be_showing()

gboolean meta_window_should_be_showing ( MetaWindow *  window)

References _MetaScreen::active_workspace, _MetaWindow::desc, meta_window_located_on_workspace(), meta_window_showing_on_its_workspace(), meta_workspace_index(), _MetaWindow::on_all_workspaces, and _MetaWindow::screen.

Referenced by idle_calc_showing(), and meta_window_calc_showing().

Here is the call graph for this function:

◆ meta_window_shove_titlebar_onscreen()

void meta_window_shove_titlebar_onscreen ( MetaWindow *  window)

◆ meta_window_show()

void meta_window_show ( MetaWindow *  window)
static

References _MetaWindow::calc_placement, _MetaWindow::denied_focus_and_not_transient, _MetaWindow::desc, _MetaWindow::display, ensure_mru_position_after(), FALSE, _MetaDisplay::focus_window, _MetaWindow::frame, _MetaWindow::iconic, _MetaWindow::initial_timestamp_set, invalidate_work_areas(), _MetaFrame::mapped, _MetaWindow::mapped, META_DEBUG_WINDOW_STATE, META_DEBUG_WORKAREA, meta_display_get_current_time_roundtrip(), meta_display_increment_focus_sentinel(), meta_effect_run_unminimize(), meta_error_trap_pop(), meta_error_trap_push(), META_FOCUS_MODE_CLICK, META_GRAB_OP_KEYBOARD_MOVING, meta_prefs_get_focus_mode(), meta_prefs_get_raise_on_click(), meta_ui_map_frame(), meta_window_begin_grab_op(), meta_window_focus(), meta_window_get_icon_geometry(), meta_window_get_outer_rect(), meta_window_is_ancestor_of_transient(), META_WINDOW_MODAL_DIALOG, meta_window_move_resize_now(), meta_window_stack_just_below(), _MetaWindow::move_after_placement, NULL, _MetaWindow::placed, _MetaWindow::screen, set_net_wm_state(), set_wm_state(), _MetaWindow::shaded, _MetaWindow::showing_for_first_time, _MetaWindow::struts, TRUE, _MetaWindow::type, _MetaScreen::ui, _MetaWindow::unmaps_pending, _MetaWindow::was_minimized, window_state_on_map(), window_would_be_covered(), windows_overlap(), _MetaWindow::wm_state_demands_attention, _MetaDisplay::xdisplay, _MetaFrame::xwindow, and _MetaWindow::xwindow.

Referenced by implement_showing().

Here is the call graph for this function:

◆ meta_window_show_menu()

void meta_window_show_menu ( MetaWindow *  window,
int  root_x,
int  root_y,
int  button,
guint32  timestamp 
)

References _MetaScreen::active_workspace, _MetaWindow::always_sticky, MetaWorkspaceLayout::cols, MetaWorkspaceLayout::current_col, MetaWorkspaceLayout::current_row, _MetaWindow::desc, _MetaWindow::display, _MetaWindow::has_maximize_func, _MetaWindow::has_minimize_func, _MetaWindow::has_shade_func, menu_callback(), META_MENU_OP_ABOVE, META_MENU_OP_DELETE, META_MENU_OP_MAXIMIZE, META_MENU_OP_MINIMIZE, META_MENU_OP_MOVE, META_MENU_OP_MOVE_DOWN, META_MENU_OP_MOVE_LEFT, META_MENU_OP_MOVE_RIGHT, META_MENU_OP_MOVE_UP, META_MENU_OP_NONE, META_MENU_OP_RECOVER, META_MENU_OP_RESIZE, META_MENU_OP_SHADE, META_MENU_OP_STICK, META_MENU_OP_UNABOVE, META_MENU_OP_UNMAXIMIZE, META_MENU_OP_UNSHADE, META_MENU_OP_UNSTICK, META_MENU_OP_WORKSPACES, meta_screen_calc_workspace_layout(), meta_screen_free_workspace_layout(), meta_screen_get_n_workspaces(), META_UI_DIRECTION_LTR, meta_ui_get_direction(), meta_ui_window_menu_free(), meta_ui_window_menu_new(), meta_ui_window_menu_popup(), META_WINDOW_ALLOWS_MOVE, META_WINDOW_ALLOWS_RESIZE, META_WINDOW_DESKTOP, META_WINDOW_DOCK, meta_window_get_net_wm_desktop(), META_WINDOW_MAXIMIZED, META_WINDOW_SPLASHSCREEN, meta_window_titlebar_is_onscreen(), meta_workspace_index(), NULL, _MetaWindow::on_all_workspaces, MetaWorkspaceLayout::rows, _MetaWindow::screen, _MetaWindow::shaded, _MetaWindow::type, _MetaScreen::ui, _MetaDisplay::window_menu, _MetaDisplay::window_with_menu, _MetaWindow::wm_state_above, and _MetaWindow::xwindow.

Referenced by event_callback(), handle_activate_window_menu(), meta_core_show_window_menu(), and meta_window_client_message().

Here is the call graph for this function:

◆ meta_window_showing_on_its_workspace()

◆ meta_window_stack_just_below()

void meta_window_stack_just_below ( MetaWindow *  window,
MetaWindow *  below_this_one 
)

References _MetaWindow::desc, META_DEBUG_STACK, meta_window_set_stack_position(), NULL, and _MetaWindow::stack_position.

Referenced by meta_window_show().

Here is the call graph for this function:

◆ meta_window_stick()

void meta_window_stick ( MetaWindow *  window)

References meta_window_foreach_transient(), stick_foreach_func(), TRUE, and window_stick_impl().

Referenced by handle_toggle_on_all_workspaces(), menu_callback(), meta_core_stick(), and meta_window_client_message().

Here is the call graph for this function:

◆ meta_window_tile()

◆ meta_window_titlebar_is_onscreen()

gboolean meta_window_titlebar_is_onscreen ( MetaWindow *  window)

References _MetaScreen::active_workspace, _MetaFrame::child_y, FALSE, _MetaWindow::frame, _MetaRectangle::height, meta_rectangle_intersect(), meta_window_get_outer_rect(), _MetaWindow::screen, _MetaWorkspace::screen_region, TRUE, and _MetaRectangle::width.

Referenced by meta_core_get(), and meta_window_show_menu().

Here is the call graph for this function:

◆ meta_window_transform_to_monitor()

static void meta_window_transform_to_monitor ( MetaRectangle *  target_rect,
const MetaRectangle *  from_monitor,
const MetaRectangle *  to_monitor 
)
static

◆ meta_window_unmake_above()

void meta_window_unmake_above ( MetaWindow *  window)

References FALSE, meta_window_frame_size_changed(), meta_window_raise(), meta_window_update_layer(), set_net_wm_state(), and _MetaWindow::wm_state_above.

Referenced by handle_toggle_above(), menu_callback(), and meta_core_unmake_above().

Here is the call graph for this function:

◆ meta_window_unmake_fullscreen()

◆ meta_window_unmaximize()

void meta_window_unmaximize ( MetaWindow *  window,
MetaMaximizeFlags  directions 
)

◆ meta_window_unminimize()

void meta_window_unminimize ( MetaWindow *  window)

References FALSE, META_QUEUE_CALC_SHOWING, meta_window_foreach_transient(), meta_window_queue(), _MetaWindow::minimized, NULL, queue_calc_showing_func(), set_allowed_actions_hint(), TRUE, and _MetaWindow::was_minimized.

Referenced by do_choose_window(), event_callback(), process_tab_grab(), unminimize_func(), and unminimize_window_and_all_transient_parents().

Here is the call graph for this function:

◆ meta_window_unqueue()

◆ meta_window_unset_demands_attention()

void meta_window_unset_demands_attention ( MetaWindow *  window)

References _MetaWindow::desc, FALSE, META_DEBUG_WINDOW_OPS, set_net_wm_state(), and _MetaWindow::wm_state_demands_attention.

Referenced by meta_window_client_message(), and meta_window_focus().

Here is the call graph for this function:

◆ meta_window_unshade()

void meta_window_unshade ( MetaWindow *  window,
guint32  timestamp 
)

◆ meta_window_unstick()

void meta_window_unstick ( MetaWindow *  window)

References FALSE, meta_window_foreach_transient(), stick_foreach_func(), and window_unstick_impl().

Referenced by handle_toggle_on_all_workspaces(), menu_callback(), meta_core_unstick(), meta_window_change_workspace_without_transients(), and meta_window_client_message().

Here is the call graph for this function:

◆ meta_window_untile()

void meta_window_untile ( MetaWindow *  window)

References FALSE, META_MAXIMIZE_HORIZONTAL, META_MAXIMIZE_VERTICAL, meta_window_unmaximize(), and _MetaWindow::tiled.

Referenced by handle_toggle_tiled().

Here is the call graph for this function:

◆ meta_window_update_fullscreen_monitors()

void meta_window_update_fullscreen_monitors ( MetaWindow *  window,
unsigned long  top,
unsigned long  bottom,
unsigned long  left,
unsigned long  right 
)

References _MetaWindow::fullscreen, _MetaWindow::fullscreen_monitors, META_QUEUE_MOVE_RESIZE, meta_window_queue(), and screen.

Referenced by meta_window_client_message().

Here is the call graph for this function:

◆ meta_window_update_icon_now()

◆ meta_window_update_keyboard_move()

void meta_window_update_keyboard_move ( MetaWindow *  window)

References _MetaWindow::display, _MetaDisplay::grab_op, and warp_grab_pointer().

Referenced by process_keyboard_move_grab().

Here is the call graph for this function:

◆ meta_window_update_keyboard_resize()

void meta_window_update_keyboard_resize ( MetaWindow *  window,
gboolean  update_cursor 
)

References _MetaWindow::display, _MetaDisplay::grab_op, _MetaDisplay::grab_xwindow, meta_display_set_grab_op_cursor(), NULL, TRUE, and warp_grab_pointer().

Referenced by process_keyboard_resize_grab(), process_keyboard_resize_grab_op_change(), and update_resize().

Here is the call graph for this function:

◆ meta_window_update_layer()

void meta_window_update_layer ( MetaWindow *  window)

◆ meta_window_update_net_wm_type()

void meta_window_update_net_wm_type ( MetaWindow *  window)

References _MetaWindow::desc, _MetaWindow::display, meta_error_trap_pop(), meta_error_trap_push(), meta_is_verbose(), meta_prop_get_atom_list(), meta_window_recalc_window_type(), meta_XFree, NULL, TRUE, _MetaWindow::type_atom, _MetaDisplay::xdisplay, and _MetaWindow::xwindow.

Referenced by meta_window_new_with_attrs(), and reload_net_wm_window_type().

Here is the call graph for this function:

◆ meta_window_update_role()

void meta_window_update_role ( MetaWindow *  window)

References _MetaWindow::desc, _MetaWindow::display, meta_prop_get_latin1_string(), meta_XFree, NULL, _MetaWindow::role, and _MetaWindow::xwindow.

Referenced by meta_window_new_with_attrs(), and reload_wm_window_role().

Here is the call graph for this function:

◆ meta_window_update_struts()

◆ meta_window_update_wireframe()

◆ move_attached_dialog()

static gboolean move_attached_dialog ( MetaWindow *  window,
void *  data 
)
static

References FALSE, meta_window_get_transient_for(), META_WINDOW_MODAL_DIALOG, meta_window_move(), and _MetaWindow::type.

Referenced by meta_window_move_resize_internal().

Here is the call graph for this function:

◆ process_property_notify()

static gboolean process_property_notify ( MetaWindow *  window,
XPropertyEvent *  event 
)
static

References _MetaWindow::desc, _MetaWindow::display, FALSE, meta_is_verbose(), meta_window_reload_property_from_xwindow(), TRUE, _MetaWindow::user_time_window, _MetaDisplay::xdisplay, and _MetaWindow::xwindow.

Referenced by meta_window_property_notify().

Here is the call graph for this function:

◆ queue_calc_showing_func()

static gboolean queue_calc_showing_func ( MetaWindow *  window,
void *  data 
)
static

References META_QUEUE_CALC_SHOWING, meta_window_queue(), and TRUE.

Referenced by meta_window_minimize(), meta_window_new_with_attrs(), and meta_window_unminimize().

Here is the call graph for this function:

◆ read_client_leader()

static Window read_client_leader ( MetaDisplay *  display,
Window  xwindow 
)
static

References meta_prop_get_window().

Referenced by find_client_leader_func(), and update_sm_hints().

Here is the call graph for this function:

◆ recalc_window_features()

static void recalc_window_features ( MetaWindow *  window)
static

References _, _MetaWindow::always_sticky, _MetaWindow::border_only, _MetaWindow::constructing, _MetaWindow::decorated, _MetaWindow::desc, FALSE, _MetaWindow::fullscreen, _MetaWindow::has_close_func, _MetaWindow::has_fullscreen_func, _MetaWindow::has_maximize_func, _MetaWindow::has_minimize_func, _MetaWindow::has_move_func, _MetaWindow::has_resize_func, _MetaWindow::has_shade_func, _MetaRectangle::height, META_DEBUG_WINDOW_OPS, meta_prefs_get_attach_modal_dialogs(), meta_warning(), META_WINDOW_DESKTOP, META_WINDOW_DIALOG, META_WINDOW_DOCK, meta_window_frame_size_changed(), meta_window_get_transient_for(), META_WINDOW_MENU, META_WINDOW_MODAL_DIALOG, META_WINDOW_NORMAL, META_WINDOW_SPLASHSCREEN, META_WINDOW_TOOLBAR, META_WINDOW_UTILITY, _MetaWindow::mwm_border_only, _MetaWindow::mwm_decorated, _MetaWindow::mwm_has_close_func, _MetaWindow::mwm_has_maximize_func, _MetaWindow::mwm_has_minimize_func, _MetaWindow::mwm_has_move_func, _MetaWindow::mwm_has_resize_func, _MetaScreen::rect, _MetaWindow::screen, set_allowed_actions_hint(), _MetaWindow::size_hints, _MetaWindow::skip_pager, _MetaWindow::skip_taskbar, TRUE, _MetaWindow::type, _MetaRectangle::width, _MetaWindow::wm_state_skip_pager, _MetaWindow::wm_state_skip_taskbar, _MetaScreen::xroot, and _MetaWindow::xtransient_for.

Referenced by meta_window_client_message(), meta_window_make_fullscreen_internal(), meta_window_maximize_internal(), meta_window_recalc_features(), meta_window_unmake_fullscreen(), meta_window_unmaximize(), and recalc_window_type().

Here is the call graph for this function:

◆ recalc_window_type()

◆ redraw_icon()

static void redraw_icon ( MetaWindow *  window)
static

References _MetaWindow::frame, _MetaFrame::mapped, _MetaWindow::mapped, meta_ui_queue_frame_draw(), _MetaWindow::screen, _MetaScreen::ui, and _MetaFrame::xwindow.

Referenced by meta_window_update_icon_now().

Here is the call graph for this function:

◆ save_user_window_placement()

static void save_user_window_placement ( MetaWindow *  window)
static

Save the user_rect, but only if the window is neither maximized nor fullscreen, otherwise the window may snap back to those dimensions (bug #461927).

Parameters
windowStore current position of this window for future reference

References _MetaWindow::fullscreen, _MetaRectangle::height, _MetaWindow::maximized_horizontally, _MetaWindow::maximized_vertically, meta_window_get_client_root_coords(), META_WINDOW_MAXIMIZED, META_WINDOW_SIDE_TILED, _MetaWindow::user_rect, _MetaRectangle::width, _MetaRectangle::x, and _MetaRectangle::y.

Referenced by meta_window_move_resize_internal(), and meta_window_move_resize_request().

Here is the call graph for this function:

◆ send_configure_notify()

◆ set_allowed_actions_hint()

◆ set_net_wm_state()

◆ set_wm_state()

static void set_wm_state ( MetaWindow *  window,
int  state 
)
static

References _MetaWindow::desc, _MetaWindow::display, FALSE, meta_error_trap_pop(), meta_error_trap_push(), _MetaDisplay::xdisplay, and _MetaWindow::xwindow.

Referenced by meta_window_free(), meta_window_hide(), meta_window_new_with_attrs(), and meta_window_show().

Here is the call graph for this function:

◆ stackcmp()

static int stackcmp ( gconstpointer  a,
gconstpointer  b 
)
static

References meta_stack_windows_cmp(), _MetaWindow::screen, and _MetaScreen::stack.

Referenced by idle_calc_showing().

Here is the call graph for this function:

◆ static_gravity_works()

static gboolean static_gravity_works ( MetaDisplay *  display)
static

◆ stick_foreach_func()

static gboolean stick_foreach_func ( MetaWindow *  window,
void *  data 
)
static

References TRUE, window_stick_impl(), and window_unstick_impl().

Referenced by meta_window_stick(), and meta_window_unstick().

Here is the call graph for this function:

◆ time_diff()

static double time_diff ( const gint64  first,
const gint64  second 
)
static

◆ transient_has_focus()

static gboolean transient_has_focus ( MetaWindow *  window,
void *  data 
)
static

References FALSE, meta_window_appears_focused(), META_WINDOW_MODAL_DIALOG, TRUE, and _MetaWindow::type.

Referenced by meta_window_appears_focused().

Here is the call graph for this function:

◆ unmaximize_window_before_freeing()

static void unmaximize_window_before_freeing ( MetaWindow *  window)
static

◆ unminimize_func()

static gboolean unminimize_func ( MetaWindow *  window,
void *  data 
)
static

References meta_window_unminimize(), and TRUE.

Referenced by unminimize_window_and_all_transient_parents().

Here is the call graph for this function:

◆ unminimize_window_and_all_transient_parents()

static void unminimize_window_and_all_transient_parents ( MetaWindow *  window)
static

References meta_window_foreach_ancestor(), meta_window_unminimize(), NULL, and unminimize_func().

Referenced by meta_window_new_with_attrs(), and window_activate().

Here is the call graph for this function:

◆ update_move()

static void update_move ( MetaWindow *  window,
gboolean  snap,
int  x,
int  y 
)
static

References calculate_tiling_mode(), _MetaFrame::child_x, _MetaFrame::child_y, _MetaDisplay::compositor, _MetaWindow::display, DRAG_THRESHOLD_TO_SHAKE_THRESHOLD_FACTOR, FALSE, _MetaWindow::frame, _MetaDisplay::grab_anchor_root_x, _MetaDisplay::grab_anchor_root_y, _MetaDisplay::grab_anchor_window_pos, _MetaDisplay::grab_initial_window_pos, _MetaDisplay::grab_latest_motion_x, _MetaDisplay::grab_latest_motion_y, _MetaDisplay::grab_wireframe_active, _MetaDisplay::grab_wireframe_rect, _MetaRectangle::height, _MetaWindow::maximized_horizontally, _MetaWindow::maximized_vertically, meta_compositor_update_move(), META_MAXIMIZE_HORIZONTAL, META_MAXIMIZE_VERTICAL, meta_prefs_get_allow_tiling(), meta_screen_get_current_xinerama(), meta_screen_get_xinerama_for_window(), meta_screen_tile_preview_update(), META_TILE_CYCLE_NONE, META_TILE_NONE, meta_ui_get_drag_threshold(), META_WINDOW_CORNER_TILED, meta_window_edge_resistance_for_move(), meta_window_get_client_root_coords(), meta_window_get_work_area_for_xinerama(), meta_window_maximize(), META_WINDOW_MAXIMIZED, meta_window_move(), META_WINDOW_TILED, meta_window_unmaximize(), meta_window_update_wireframe(), _MetaScreen::n_xinerama_infos, _MetaXineramaScreenInfo::number, _MetaWindow::saved_rect, _MetaWindow::screen, _MetaWindow::shaken_loose, _MetaWindow::tile_cycle, _MetaWindow::tile_mode, _MetaWindow::tile_monitor_number, _MetaWindow::tile_resized, _MetaWindow::tiled, TRUE, _MetaScreen::ui, update_move_timeout(), _MetaWindow::user_rect, _MetaRectangle::width, _MetaRectangle::x, and _MetaRectangle::y.

Referenced by meta_window_handle_mouse_grab_op_event(), and update_move_timeout().

Here is the call graph for this function:

◆ update_move_timeout()

static gboolean update_move_timeout ( gpointer  data)
static

References _MetaWindow::display, FALSE, _MetaDisplay::grab_last_user_action_was_snap, _MetaDisplay::grab_latest_motion_x, _MetaDisplay::grab_latest_motion_y, and update_move().

Referenced by update_move().

Here is the call graph for this function:

◆ update_net_frame_extents()

static void update_net_frame_extents ( MetaWindow *  window)
static

References _MetaWindow::display, FALSE, _MetaWindow::frame, META_DEBUG_GEOMETRY, meta_error_trap_pop(), meta_error_trap_push(), meta_frame_calc_borders(), _MetaFrameBorders::visible, _MetaDisplay::xdisplay, and _MetaWindow::xwindow.

Referenced by meta_window_move_resize_internal().

Here is the call graph for this function:

◆ update_resize()

static void update_resize ( MetaWindow *  window,
gboolean  snap,
int  x,
int  y,
gboolean  force 
)
static

References check_moveresize_frequency(), _MetaDisplay::compositor, _MetaWindow::display, FALSE, _MetaWindow::frame, _MetaDisplay::grab_anchor_root_x, _MetaDisplay::grab_anchor_root_y, _MetaDisplay::grab_anchor_window_pos, _MetaDisplay::grab_last_moveresize_time, _MetaDisplay::grab_latest_motion_x, _MetaDisplay::grab_latest_motion_y, _MetaDisplay::grab_op, _MetaDisplay::grab_resize_timeout_id, _MetaDisplay::grab_tile_match, _MetaDisplay::grab_wireframe_active, _MetaDisplay::grab_wireframe_rect, _MetaRectangle::height, meta_compositor_set_updates(), meta_frame_calc_borders(), 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_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_resize_gravity_from_grab_op(), META_TILE_BOTTOM_LEFT, META_TILE_LEFT, META_TILE_TOP_LEFT, meta_window_edge_resistance_for_resize(), meta_window_get_work_area_for_xinerama(), meta_window_resize_with_gravity(), meta_window_update_keyboard_resize(), meta_window_update_wireframe(), _MetaWindow::minimized, NULL, _MetaWindow::rect, _MetaWindow::size_hints, _MetaWindow::tile_mode, _MetaWindow::tile_monitor_number, _MetaWindow::tile_resized, _MetaWindow::tiled, TRUE, update_resize_timeout(), _MetaFrameBorders::visible, _MetaRectangle::width, _MetaWindow::workspace, _MetaRectangle::x, and _MetaRectangle::y.

Referenced by meta_window_handle_mouse_grab_op_event(), and update_resize_timeout().

Here is the call graph for this function:

◆ update_resize_timeout()

static gboolean update_resize_timeout ( gpointer  data)
static

References _MetaWindow::display, FALSE, _MetaDisplay::grab_last_user_action_was_snap, _MetaDisplay::grab_latest_motion_x, _MetaDisplay::grab_latest_motion_y, TRUE, and update_resize().

Referenced by update_resize().

Here is the call graph for this function:

◆ update_sm_hints()

static void update_sm_hints ( MetaWindow *  window)
static

◆ update_tile_mode()

static void update_tile_mode ( MetaWindow *  window)
static

◆ warp_grab_pointer()

◆ window_activate()

◆ window_state_on_map()

◆ window_stick_impl()

static void window_stick_impl ( MetaWindow *  window)
static

References _MetaWindow::desc, META_QUEUE_CALC_SHOWING, meta_window_frame_size_changed(), meta_window_queue(), meta_window_set_current_workspace_hint(), _MetaWorkspace::mru_list, _MetaWindow::on_all_workspaces, _MetaWindow::screen, TRUE, and _MetaScreen::workspaces.

Referenced by meta_window_stick(), and stick_foreach_func().

Here is the call graph for this function:

◆ window_unstick_impl()

static void window_unstick_impl ( MetaWindow *  window)
static

◆ window_would_be_covered()

static gboolean window_would_be_covered ( const MetaWindow *  newbie)
static

References FALSE, meta_window_get_workspace(), meta_workspace_list_windows(), NULL, TRUE, windows, windows_overlap(), and _MetaWindow::wm_state_above.

Referenced by meta_window_show().

Here is the call graph for this function:

◆ windows_overlap()

static gboolean windows_overlap ( const MetaWindow *  w1,
const MetaWindow *  w2 
)
static

References FALSE, meta_rectangle_overlap(), meta_window_get_outer_rect(), and _MetaWindow::minimized.

Referenced by meta_window_show(), and window_would_be_covered().

Here is the call graph for this function:

Variable Documentation

◆ destroying_windows_disallowed

int destroying_windows_disallowed = 0
static

◆ queue_idle

◆ queue_pending