From 6fa8f72c61169002108c1aac1c14f11217f29cc7 Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Wed, 22 Sep 1999 00:39:37 +0000 Subject: [PATCH] turn off live-reflow during resize until cmd-key is down. --- widget/src/mac/nsMacMessagePump.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/widget/src/mac/nsMacMessagePump.cpp b/widget/src/mac/nsMacMessagePump.cpp index 30ba1807fa92..18091ec123cc 100644 --- a/widget/src/mac/nsMacMessagePump.cpp +++ b/widget/src/mac/nsMacMessagePump.cpp @@ -63,7 +63,7 @@ #include "macstdlibextras.h" #endif -#define DRAW_ON_RESIZE 1 // if 1, enable live-resize except when the command key is down +#define DRAW_ON_RESIZE 0 // if 1, enable live-resize except when the command key is down const short kMinWindowWidth = 125; const short kMinWindowHeight = 150; @@ -445,11 +445,9 @@ void nsMacMessagePump::DoMouseDown(EventRecord &anEvent) ::SetPort(whichWindow); #endif -//#if DEBUG - Boolean drawOnResize = (DRAW_ON_RESIZE && ((anEvent.modifiers & cmdKey) == 0)); -//#else -// Boolean drawOnResize = false; -//#endif + // use the cmd-key to do the opposite of the DRAW_ON_RESIZE setting. + Boolean cmdKeyDown = (anEvent.modifiers & cmdKey) != 0; + Boolean drawOnResize = DRAW_ON_RESIZE ? !cmdKeyDown : cmdKeyDown; if (drawOnResize) { Point oldPt = anEvent.where;