summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWindowEvent.c
diff options
context:
space:
mode:
authordas <das>2006-04-11 07:36:36 (GMT)
committerdas <das>2006-04-11 07:36:36 (GMT)
commit070434c182c27254deaee167b8933d75caa88f07 (patch)
tree8453fd3ff6200edf45dabd6c54b008e5b62d728a /macosx/tkMacOSXWindowEvent.c
parent395b185e7d03c18efd681420914e6992a82a2508 (diff)
downloadtk-070434c182c27254deaee167b8933d75caa88f07.zip
tk-070434c182c27254deaee167b8933d75caa88f07.tar.gz
tk-070434c182c27254deaee167b8933d75caa88f07.tar.bz2
* macosx/tkMacOSXInt.h: Implemented 'zoomed' window state
* macosx/tkMacOSXWindowEvent.c: handling for TkAqua, via titlebar * macosx/tkMacOSXWm.c: widget clicks as well as [wm state]. * doc/wm.n: [Bug 1073456]
Diffstat (limited to 'macosx/tkMacOSXWindowEvent.c')
-rw-r--r--macosx/tkMacOSXWindowEvent.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c
index 1996305..e2fb633 100644
--- a/macosx/tkMacOSXWindowEvent.c
+++ b/macosx/tkMacOSXWindowEvent.c
@@ -54,7 +54,7 @@
* software in accordance with the terms specified in this
* license.
*
- * RCS: @(#) $Id: tkMacOSXWindowEvent.c,v 1.11 2006/03/24 14:58:01 das Exp $
+ * RCS: @(#) $Id: tkMacOSXWindowEvent.c,v 1.12 2006/04/11 07:36:36 das Exp $
*/
#include "tkMacOSXInt.h"
@@ -238,7 +238,8 @@ TkMacOSXProcessWindowEvent(
dispPtr = TkGetDisplayList();
winPtr = (TkWindow *)Tk_IdToWindow(dispPtr->display, window);
if (winPtr) {
- TkpWmSetState(winPtr, NormalState);
+ TkpWmSetState(winPtr, TkMacOSXIsWindowZoomed(winPtr) ?
+ ZoomState : NormalState);
}
break;
}