Go to the source code of this file.
Defines | |
| #define | CASCADE_FUZZ 15 |
| #define | CASCADE_INTERVAL 50 |
Enumerations | |
| enum | MetaWindowDirection { META_LEFT, META_RIGHT, META_TOP, META_BOTTOM } |
Functions | |
| static gint | northwestcmp (gconstpointer a, gconstpointer b) |
| static void | find_next_cascade (MetaWindow *window, MetaFrameGeometry *fgeom, GList *windows, int x, int y, int *new_x, int *new_y) |
| static void | find_most_freespace (MetaWindow *window, MetaFrameGeometry *fgeom, MetaWindow *focus_window, int x, int y, int *new_x, int *new_y) |
| static void | avoid_being_obscured_as_second_modal_dialog (MetaWindow *window, MetaFrameGeometry *fgeom, int *x, int *y) |
| static gboolean | rectangle_overlaps_some_window (MetaRectangle *rect, GList *windows) |
| static gint | leftmost_cmp (gconstpointer a, gconstpointer b) |
| static gint | topmost_cmp (gconstpointer a, gconstpointer b) |
| static void | center_tile_rect_in_area (MetaRectangle *rect, MetaRectangle *work_area) |
| static gboolean | find_first_fit (MetaWindow *window, MetaFrameGeometry *fgeom, GList *windows, int xinerama, int x, int y, int *new_x, int *new_y) |
| void | meta_window_place (MetaWindow *window, MetaFrameGeometry *fgeom, int x, int y, int *new_x, int *new_y) |
| #define CASCADE_FUZZ 15 |
Referenced by find_next_cascade().
| #define CASCADE_INTERVAL 50 |
Referenced by find_next_cascade().
| enum MetaWindowDirection |
| static void avoid_being_obscured_as_second_modal_dialog | ( | MetaWindow * | window, | |
| MetaFrameGeometry * | fgeom, | |||
| int * | x, | |||
| int * | y | |||
| ) | [static] |
Definition at line 337 of file place.c.
References _MetaWindow::denied_focus_and_not_transient, _MetaWindow::desc, _MetaWindow::display, find_most_freespace(), META_DEBUG_PLACEMENT, meta_rectangle_intersect(), meta_window_same_application(), _MetaWindow::rect, and _MetaWindow::wm_state_modal.
Referenced by meta_window_place().
| static void center_tile_rect_in_area | ( | MetaRectangle * | rect, | |
| MetaRectangle * | work_area | |||
| ) | [static] |
Definition at line 473 of file place.c.
References _MetaRectangle::height, _MetaRectangle::width, _MetaRectangle::x, and _MetaRectangle::y.
Referenced by find_first_fit().
| static gboolean find_first_fit | ( | MetaWindow * | window, | |
| MetaFrameGeometry * | fgeom, | |||
| GList * | windows, | |||
| int | xinerama, | |||
| int | x, | |||
| int | y, | |||
| int * | new_x, | |||
| int * | new_y | |||
| ) | [static] |
Definition at line 499 of file place.c.
References _MetaFrameGeometry::bottom_height, center_tile_rect_in_area(), FALSE, _MetaRectangle::height, _MetaFrameGeometry::left_width, leftmost_cmp(), META_DEBUG_XINERAMA, meta_rectangle_contains_rect(), meta_rectangle_to_string(), meta_window_get_outer_rect(), meta_window_get_work_area_for_xinerama(), NULL, _MetaXineramaScreenInfo::rect, _MetaWindow::rect, RECT_LENGTH, rectangle_overlaps_some_window(), _MetaFrameGeometry::right_width, _MetaWindow::screen, _MetaFrameGeometry::top_height, topmost_cmp(), TRUE, _MetaRectangle::width, _MetaRectangle::x, _MetaScreen::xinerama_infos, and _MetaRectangle::y.
Referenced by meta_window_place().
| static void find_most_freespace | ( | MetaWindow * | window, | |
| MetaFrameGeometry * | fgeom, | |||
| MetaWindow * | focus_window, | |||
| int | x, | |||
| int | y, | |||
| int * | new_x, | |||
| int * | new_y | |||
| ) | [static] |
Definition at line 239 of file place.c.
References _MetaRectangle::height, _MetaFrameGeometry::left_width, META_BOTTOM, META_LEFT, META_RIGHT, META_TOP, meta_window_get_outer_rect(), meta_window_get_work_area_current_xinerama(), _MetaFrameGeometry::top_height, _MetaRectangle::width, _MetaRectangle::x, and _MetaRectangle::y.
Referenced by avoid_being_obscured_as_second_modal_dialog(), and meta_window_place().
| static void find_next_cascade | ( | MetaWindow * | window, | |
| MetaFrameGeometry * | fgeom, | |||
| GList * | windows, | |||
| int | x, | |||
| int | y, | |||
| int * | new_x, | |||
| int * | new_y | |||
| ) | [static] |
Definition at line 91 of file place.c.
References CASCADE_FUZZ, CASCADE_INTERVAL, _MetaWindow::frame, _MetaRectangle::height, _MetaFrameGeometry::left_width, meta_screen_get_current_xinerama(), meta_window_get_position(), meta_window_get_work_area_for_xinerama(), northwestcmp(), NULL, _MetaXineramaScreenInfo::number, _MetaWindow::rect, _MetaFrame::rect, _MetaWindow::screen, _MetaFrameGeometry::top_height, _MetaRectangle::width, _MetaRectangle::x, and _MetaRectangle::y.
Referenced by meta_window_place().
| static gint leftmost_cmp | ( | gconstpointer | a, | |
| gconstpointer | b | |||
| ) | [static] |
Definition at line 417 of file place.c.
References _MetaWindow::frame, _MetaWindow::rect, _MetaFrame::rect, and _MetaRectangle::x.
Referenced by find_first_fit().
| void meta_window_place | ( | MetaWindow * | window, | |
| MetaFrameGeometry * | fgeom, | |||
| int | x, | |||
| int | y, | |||
| int * | new_x, | |||
| int * | new_y | |||
| ) |
Definition at line 645 of file place.c.
References avoid_being_obscured_as_second_modal_dialog(), _MetaWindow::decorated, _MetaWindow::denied_focus_and_not_transient, _MetaWindow::desc, _MetaWindow::display, find_first_fit(), find_most_freespace(), find_next_cascade(), _MetaWindow::fullscreen, _MetaWindow::has_maximize_func, _MetaRectangle::height, _MetaWindow::maximize_horizontally_after_placement, _MetaWindow::maximize_vertically_after_placement, META_DEBUG_PLACEMENT, meta_display_list_windows(), meta_display_lookup_x_window(), meta_prefs_get_disable_workarounds(), meta_rectangle_intersect(), meta_screen_get_current_xinerama(), META_WINDOW_DESKTOP, META_WINDOW_DIALOG, META_WINDOW_DOCK, meta_window_get_outer_rect(), meta_window_get_position(), meta_window_get_work_area_for_xinerama(), META_WINDOW_MENU, META_WINDOW_MODAL_DIALOG, META_WINDOW_NORMAL, meta_window_showing_on_its_workspace(), META_WINDOW_SPLASHSCREEN, META_WINDOW_TOOLBAR, META_WINDOW_UTILITY, NULL, _MetaXineramaScreenInfo::number, _MetaScreen::number, _MetaWindow::on_all_workspaces, _MetaXineramaScreenInfo::rect, _MetaWindow::rect, _MetaWindow::screen, _MetaWindow::size_hints, _MetaFrameGeometry::top_height, TRUE, _MetaWindow::type, _MetaRectangle::width, windows, _MetaWindow::workspace, _MetaRectangle::x, _MetaWindow::xtransient_for, and _MetaRectangle::y.
Referenced by place_window_if_needed().
| static gint northwestcmp | ( | gconstpointer | a, | |
| gconstpointer | b | |||
| ) | [static] |
Definition at line 45 of file place.c.
References _MetaWindow::frame, _MetaWindow::rect, _MetaFrame::rect, _MetaRectangle::x, and _MetaRectangle::y.
Referenced by find_next_cascade().
| static gboolean rectangle_overlaps_some_window | ( | MetaRectangle * | rect, | |
| GList * | windows | |||
| ) | [static] |
Definition at line 378 of file place.c.
References FALSE, meta_rectangle_intersect(), META_WINDOW_DESKTOP, META_WINDOW_DIALOG, META_WINDOW_DOCK, meta_window_get_outer_rect(), META_WINDOW_MENU, META_WINDOW_MODAL_DIALOG, META_WINDOW_NORMAL, META_WINDOW_SPLASHSCREEN, META_WINDOW_TOOLBAR, META_WINDOW_UTILITY, NULL, TRUE, and _MetaWindow::type.
Referenced by find_first_fit().
| static gint topmost_cmp | ( | gconstpointer | a, | |
| gconstpointer | b | |||
| ) | [static] |
Definition at line 445 of file place.c.
References _MetaWindow::frame, _MetaWindow::rect, _MetaFrame::rect, and _MetaRectangle::y.
Referenced by find_first_fit().
1.5.5