summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWindowEvent.c
diff options
context:
space:
mode:
authorwordtech <wordtech>2011-01-04 22:36:58 (GMT)
committerwordtech <wordtech>2011-01-04 22:36:58 (GMT)
commit3c2ab580d7e8c701b9017fd96f5ca13b7f4276a2 (patch)
tree3425d75041cc0ce3130f13cc885d912ac3a2a764 /macosx/tkMacOSXWindowEvent.c
parentcac9cbda71304b94b811f59ad1e287a27c5d021a (diff)
downloadtk-3c2ab580d7e8c701b9017fd96f5ca13b7f4276a2.zip
tk-3c2ab580d7e8c701b9017fd96f5ca13b7f4276a2.tar.gz
tk-3c2ab580d7e8c701b9017fd96f5ca13b7f4276a2.tar.bz2
Textured background windows
Diffstat (limited to 'macosx/tkMacOSXWindowEvent.c')
-rw-r--r--macosx/tkMacOSXWindowEvent.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c
index 3e98ced..b17f97b 100644
--- a/macosx/tkMacOSXWindowEvent.c
+++ b/macosx/tkMacOSXWindowEvent.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXWindowEvent.c,v 1.38 2009/08/24 00:55:08 das Exp $
+ * RCS: @(#) $Id: tkMacOSXWindowEvent.c,v 1.39 2011/01/04 22:36:58 wordtech Exp $
*/
#include "tkMacOSXPrivate.h"
@@ -48,6 +48,8 @@ extern NSString *NSWindowDidOrderOffScreenNotification;
#endif
#endif
+extern NSString *opaqueTag;
+
@implementation TKApplication(TKWindowEvent)
- (void) windowActivation: (NSNotification *) notification
@@ -924,8 +926,13 @@ ExposeRestrictProc(
{
NSWindow *w = [self window];
- return (w && (([w styleMask] & NSTexturedBackgroundWindowMask) ||
- ![w isOpaque]) ? NO : YES);
+ if (opaqueTag != NULL) {
+ return YES;
+ } else {
+
+ return (w && (([w styleMask] & NSTexturedBackgroundWindowMask) ||
+ ![w isOpaque]) ? NO : YES);
+ }
}
- (BOOL) wantsDefaultClipping