path: root/src/window.h
diff options
authorHavoc Pennington <>2002-05-05 05:41:13 +0000
committerHavoc Pennington <>2002-05-05 05:41:13 +0000
commit41120f2a7931821391115c69da0239c08f022f60 (patch)
treeabfc25b03939cb1c7fb6299a6151883c9c5eb256 /src/window.h
parent6f8a7f18702beb2fb8128eea25b532cb0b15ebbb (diff)
on unminimize, queue calc_showing on all transients
2002-05-05 Havoc Pennington <> * src/window.c (meta_window_unminimize): on unminimize, queue calc_showing on all transients (meta_window_activate): on activate, unminimize all a window's ancestors, not just the window itself. * src/workspace.c (set_work_area_hint): don't increment "tmp" by 16 unsigned long, increment by 4 * src/window.c (meta_window_free): if a window isn't minimized, restore its WM_STATE to NormalState instead of IconicState, since IconicState on initial window map means that the window should be minimized. * src/workspace.c (meta_workspace_invalidate_work_area): queue an idle to recompute the work area hint. (set_work_area_hint): we need 4*num_workspaces ints, not just num_workspaces. * src/screen.c (meta_screen_new): add work_area_idle field, handle it on screen shutdown * src/common.h (META_PRIORITY_PREFS_NOTIFY, META_PRIORITY_WORK_AREA_HINT): define some idle priorities * src/window.c (meta_window_calc_showing): hide windows if their parent window is minimized (meta_window_minimize): also queue_calc_showing on all transients of the window being minimized * src/place.c (constrain_placement): function to apply placement-time-only constraints, such as "not off the left of the screen" (meta_window_place): put dialogs down a bit over their parent, not right at the top. (meta_window_place): when centering a dialog, center it on the current xinerama screen, rather than the entire screen. * src/screen.c (meta_screen_get_current_xinerama): new function, but not implemented
Diffstat (limited to 'src/window.h')
1 files changed, 8 insertions, 0 deletions
diff --git a/src/window.h b/src/window.h
index 873d97e..d13d3f6 100644
--- a/src/window.h
+++ b/src/window.h
@@ -29,6 +29,8 @@
#include <X11/Xutil.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
+typedef void (*MetaWindowForeachFunc) (MetaWindow *window,
+ void *data);
typedef enum
@@ -383,4 +385,10 @@ void meta_window_refresh_resize_popup (MetaWindow *window);
void meta_window_free_delete_dialog (MetaWindow *window);
+void meta_window_foreach_transient (MetaWindow *window,
+ MetaWindowForeachFunc func,
+ void *data);
+gboolean meta_window_is_ancestor_of_transient (MetaWindow *window,
+ MetaWindow *transient);