diff options
author | das <das> | 2009-08-14 14:51:02 (GMT) |
---|---|---|
committer | das <das> | 2009-08-14 14:51:02 (GMT) |
commit | f4cf4a95f73b53ac9c0a6e3c93d9676d2877598e (patch) | |
tree | e55f9c2f14c974a5fc96e863d8735bfdfe5cdbd4 /macosx | |
parent | a4a7f90a6aae30211db5f8b0a7eb61a89a87ae84 (diff) | |
download | tk-f4cf4a95f73b53ac9c0a6e3c93d9676d2877598e.zip tk-f4cf4a95f73b53ac9c0a6e3c93d9676d2877598e.tar.gz tk-f4cf4a95f73b53ac9c0a6e3c93d9676d2877598e.tar.bz2 |
* macosx/tkMacOSXWm.c: Workaround for textured windows being draggable
from opaque content areas. [Bug 2824538] (walzer)
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXWm.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index 17d4320..44a64a3 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXWm.c,v 1.76 2009/07/06 20:29:21 dkf Exp $ + * RCS: @(#) $Id: tkMacOSXWm.c,v 1.77 2009/08/14 14:51:02 das Exp $ */ #include "tkMacOSXPrivate.h" @@ -5342,6 +5342,14 @@ TkMacOSXMakeRealWindowExist( if (styleMask & NSUtilityWindowMask) { [(NSPanel*)window setFloatingPanel:YES]; } + if ((styleMask & (NSTexturedBackgroundWindowMask|NSHUDWindowMask)) && + !(styleMask & NSDocModalWindowMask)) { + /* + * Workaround for [Bug 2824538]: Texured windows are draggable + * from opaque content. + */ + [window setMovableByWindowBackground:NO]; + } [window setDocumentEdited:NO]; wmPtr->window = window; macWin->view = contentView; |