summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2018-12-08 03:08:58 (GMT)
committerKevin Walzer <kw@codebykevin.com>2018-12-08 03:08:58 (GMT)
commit699c6d8d3a33f573176f71808958097077a0ad39 (patch)
tree77f47d1aef09b52a1336f4bef4540a6b12971f2d /macosx
parentb8cf9c7dcf74f1608c10559d77b394c2e9d75aec (diff)
downloadtk-699c6d8d3a33f573176f71808958097077a0ad39.zip
tk-699c6d8d3a33f573176f71808958097077a0ad39.tar.gz
tk-699c6d8d3a33f573176f71808958097077a0ad39.tar.bz2
Remove overrideredirect, transient, and help-styled windows from fullscreen API
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXWm.c26
1 files changed, 8 insertions, 18 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index 3ccf1b3..f761a68 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.c
@@ -5440,21 +5440,6 @@ WmWinStyle(
{ "moveToActiveSpace", tkMoveToActiveSpaceAttribute },
{ "nonActivating", tkNonactivatingPanelAttribute },
{ "hud", tkHUDWindowAttribute },
- { "black", 0 },
- { "dark", 0 },
- { "light", 0 },
- { "gray", 0 },
- { "red", 0 },
- { "green", 0 },
- { "blue", 0 },
- { "cyan", 0 },
- { "yellow", 0 },
- { "magenta", 0 },
- { "orange", 0 },
- { "purple", 0 },
- { "brown", 0 },
- { "clear", 0 },
- { "opacity", 0 },
{ NULL }
};
@@ -5536,10 +5521,8 @@ WmWinStyle(
macClassAttrs[macClass].validAttrs);
wmPtr->flags |= macClassAttrs[macClass].flags;
wmPtr->macClass = macClass;
-
ApplyWindowAttributeFlagChanges(winPtr, NULL, oldAttributes, oldFlags,
0, 1);
-
return TCL_OK;
badClassAttrs:
@@ -6511,7 +6494,14 @@ ApplyWindowAttributeFlagChanges(
#if !(MAC_OS_X_VERSION_MAX_ALLOWED < 1070)
if (!(macWindow.styleMask & NSUtilityWindowMask)) {
- if (winPtr->atts.override_redirect) {
+
+ /*
+ * Exclude overrideredirect, transient, and "help"-styled
+ * windows from moving into their own fullscreen space.
+ *
+ */
+
+ if ((winPtr->atts.override_redirect) || (wmPtr->master != None) || (winPtr->wmInfoPtr->macClass == kHelpWindowClass)) {
b |= (NSWindowCollectionBehaviorCanJoinAllSpaces |
NSWindowCollectionBehaviorFullScreenAuxiliary);
} else {