diff options
author | culler <culler> | 2018-10-27 23:27:28 (GMT) |
---|---|---|
committer | culler <culler> | 2018-10-27 23:27:28 (GMT) |
commit | e58fbbb28c130d72b51502c53712b6bfc593513c (patch) | |
tree | 04f1bae1564c16e4e6b394ef7835746440277640 /macosx/tkMacOSXWm.h | |
parent | 559f71f606ce08b18304d270ca2aa2f10abb64cf (diff) | |
download | tk-e58fbbb28c130d72b51502c53712b6bfc593513c.zip tk-e58fbbb28c130d72b51502c53712b6bfc593513c.tar.gz tk-e58fbbb28c130d72b51502c53712b6bfc593513c.tar.bz2 |
Cache window state in the WmInfo when going Fullscreen. If the user has two
monitors, using static variables could cause trouble.
Diffstat (limited to 'macosx/tkMacOSXWm.h')
-rw-r--r-- | macosx/tkMacOSXWm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/macosx/tkMacOSXWm.h b/macosx/tkMacOSXWm.h index e904f50..43f1a7a 100644 --- a/macosx/tkMacOSXWm.h +++ b/macosx/tkMacOSXWm.h @@ -185,6 +185,15 @@ typedef struct TkWmInfo { TkWindow *scrollWinPtr; /* Ptr to scrollbar handling grow widget. */ TkMenu *menuPtr; NSWindow *window; + + /* + * Space to cache current window state when window becomes Fullscreen. + */ + + unsigned long cachedStyle; + unsigned long cachedPresentation; + NSRect cachedBounds; + } WmInfo; /* |