From 2b780e5486221f5b33017b09de6ae7228252e071 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 8 Jun 2002 06:07:21 +0000 Subject: short-circuit the "only one xinerama" case, and use outer rect of window 2002-06-08 Havoc Pennington * src/screen.c (meta_screen_get_xinerama_for_window): short-circuit the "only one xinerama" case, and use outer rect of window instead of window->rect, so we get root window coords. * src/theme.c (meta_frame_layout_get_borders): if fullscreen all frame edges are zero-width. * src/frame.c (meta_frame_get_flags): init fullscreen flag. * src/common.h (enum): add META_FRAME_FULLSCREEN frame flag * src/place.c: fix up calls to meta_window_get_work_area * src/window.c (meta_window_get_work_area): add an arg for whether the work area is for the screen or the xinerama subscreen. (constrain_position): fix up calls to meta_window_get_work_area (constrain_size): ditto * src/screen.c (meta_screen_new): add METACITY_DEBUG_XINERAMA environment variable which simulates xinerama on a single head. --- src/window.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/window.h') diff --git a/src/window.h b/src/window.h index 7cbafd1..f5580ae 100644 --- a/src/window.h +++ b/src/window.h @@ -372,6 +372,7 @@ gboolean meta_window_visible_on_workspace (MetaWindow *window, /* Get minimum work area for all workspaces we're on */ void meta_window_get_work_area (MetaWindow *window, + gboolean for_current_xinerama, MetaRectangle *area); gboolean meta_window_same_application (MetaWindow *window, -- cgit v1.1