summaryrefslogtreecommitdiffstats
path: root/win/tkWinWindow.c
diff options
context:
space:
mode:
authorjenglish@flightlab.com <jenglish>2002-06-14 22:25:11 (GMT)
committerjenglish@flightlab.com <jenglish>2002-06-14 22:25:11 (GMT)
commit952bea7d5555578af3f0833ade3a253f1a035f62 (patch)
treedb4f9b64945413c671514dd1b7f254700c3649cb /win/tkWinWindow.c
parent254646b8424b5b61612568b86063af9e05d94bbc (diff)
downloadtk-952bea7d5555578af3f0833ade3a253f1a035f62.zip
tk-952bea7d5555578af3f0833ade3a253f1a035f62.tar.gz
tk-952bea7d5555578af3f0833ade3a253f1a035f62.tar.bz2
TIP #47 "Modifying Tk to Allow Writing X Window managers"
(patch from Neil McKay). * Add CirculateRequest, Create, MapRequest, ResizeRequest, and ConfigureRequest event types; * Split TK_TOPLEVEL flag into TK_TOPLEVEL, TK_HAS_WRAPPER, TK_WIN_MANAGED, and TK_TOP_HIERARCHY.
Diffstat (limited to 'win/tkWinWindow.c')
-rw-r--r--win/tkWinWindow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/win/tkWinWindow.c b/win/tkWinWindow.c
index 175f54b..da871c7 100644
--- a/win/tkWinWindow.c
+++ b/win/tkWinWindow.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinWindow.c,v 1.9 2001/10/01 21:22:35 hobbs Exp $
+ * RCS: @(#) $Id: tkWinWindow.c,v 1.10 2002/06/14 22:25:12 jenglish Exp $
*/
#include "tkWinInt.h"
@@ -371,13 +371,13 @@ XMapWindow(display, w)
* its mapped children have just become visible.
*/
- if (!(winPtr->flags & TK_TOP_LEVEL)) {
+ if (!(winPtr->flags & TK_TOP_HIERARCHY)) {
for (parentPtr = winPtr->parentPtr; ;
parentPtr = parentPtr->parentPtr) {
if ((parentPtr == NULL) || !(parentPtr->flags & TK_MAPPED)) {
return;
}
- if (parentPtr->flags & TK_TOP_LEVEL) {
+ if (parentPtr->flags & TK_TOP_HIERARCHY) {
break;
}
}
@@ -478,7 +478,7 @@ XUnmapWindow(display, w)
ShowWindow(Tk_GetHWND(w), SW_HIDE);
winPtr->flags &= ~TK_MAPPED;
- if (winPtr->flags & TK_TOP_LEVEL) {
+ if (winPtr->flags & TK_WIN_MANAGED) {
event.type = UnmapNotify;
event.xunmap.serial = display->request;
event.xunmap.send_event = False;