summaryrefslogtreecommitdiff
path: root/src/frames.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2003-01-05 07:51:02 +0000
committerHavoc Pennington <hp@src.gnome.org>2003-01-05 07:51:02 +0000
commit6cfcc01334baa84204d00f9f8fb7cd97be05b403 (patch)
tree516b851c049c9793a0914701e6e32d9d3cfb28d7 /src/frames.h
parentf8b2f6ca5cf8dbba02feacf5036c0ff46bbd027f (diff)
downloadmetacity-6cfcc01334baa84204d00f9f8fb7cd97be05b403.tar.gz
handle the client having a shape mask, fixes #101806
2003-01-05 Havoc Pennington <hp@pobox.com> * src/frames.c (meta_frames_apply_shapes): handle the client having a shape mask, fixes #101806 * src/core.c (meta_core_get_client_xwindow): new function * src/frame.c, src/frame.h: keep a flag for whether we need to update the frame shape * src/window.c (meta_window_new): select for ShapeNotify * src/display.h, src/display.c: actually query the shape extension, instead of just using it all over the place. * src/prefs.c (update_application_based): don't let people turn on application_based, as it just causes funky bugs. We can reenable the pref when/if it ever does something useful.
Diffstat (limited to 'src/frames.h')
-rw-r--r--src/frames.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/frames.h b/src/frames.h
index b0febb0a..182b6516 100644
--- a/src/frames.h
+++ b/src/frames.h
@@ -72,7 +72,8 @@ struct _MetaUIFrame
int text_height;
char *title; /* NULL once we have a layout */
guint expose_delayed : 1;
-
+ guint shape_applied : 1;
+
/* FIXME get rid of this, it can just be in the MetaFrames struct */
MetaFrameControl prelit_control;
};
@@ -127,7 +128,8 @@ void meta_frames_unflicker_bg (MetaFrames *frames,
void meta_frames_apply_shapes (MetaFrames *frames,
Window xwindow,
int new_window_width,
- int new_window_height);
+ int new_window_height,
+ gboolean window_has_shape);
void meta_frames_queue_draw (MetaFrames *frames,
Window xwindow);