Skip to content

Commit

Permalink
FZ: do not activate zones window when it's shown (#8795)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyoyuppe committed Dec 29, 2020
1 parent 9b2f1a8 commit 4f594c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 37 deletions.
38 changes: 5 additions & 33 deletions .github/actions/spell-check/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ CDeclaration
cdpx
cdpxwin
CENTERALIGN
Cfg
cfg
changecursor
Changemove
Expand Down Expand Up @@ -276,8 +275,8 @@ coclass
codebase
codecvt
codeofconduct
codereview
codeql
codereview
COINIT
Colorbrush
colorconv
Expand Down Expand Up @@ -330,13 +329,11 @@ countslabelrenamingfmt
countslabelselectedfmt
cout
CPlus
cplusplus
CPower
cpp
CPPARM
cppblog
cppm
cpprestsdk
cppruntime
cppstd
cppwinrt
Expand Down Expand Up @@ -651,14 +648,11 @@ ENU
enum
ENUMITEMS
EOAC
EOL
eol
epicgames
eport
ERASEBKGND
EREOF
EResize
ERRORLEVEL
errorlevel
ERRORMESSAGE
ERRORTITLE
Expand Down Expand Up @@ -1076,7 +1070,6 @@ ISavable
isbi
ISearch
IService
ISetting
isetting
isfinite
IShell
Expand Down Expand Up @@ -1154,7 +1147,6 @@ keyremaps
keystokes
Keystool
Keytool
KEYUP
keyup
Kf
KILLFOCUS
Expand Down Expand Up @@ -1224,7 +1216,6 @@ LOGPIXELSX
LOn
lookbehind
lowlevel
lowlevelkb
LOWORD
lparam
LPBYTE
Expand Down Expand Up @@ -1300,7 +1291,6 @@ MBUTTON
MBUTTONDBLCLK
MBUTTONDOWN
MBUTTONUP
mday
Mdb
MDICHILD
MDL
Expand Down Expand Up @@ -1343,8 +1333,8 @@ modulekey
MONITORINFO
MONITORINFOEX
MONITORINFOEXW
monitorinfof
MONITORINFOF
monitorinfof
Monthand
Moq
MOUSEACTIVATE
Expand Down Expand Up @@ -1399,7 +1389,6 @@ multizone
mutex
mutexes
muxc
Mvvm
mvvm
MYICON
myuri
Expand Down Expand Up @@ -1698,7 +1687,6 @@ propkey
propvarutil
Prt
prui
PRVPANE
prvpane
psapi
PSECURITY
Expand Down Expand Up @@ -1747,7 +1735,6 @@ RAII
RAlt
randyrants
RAWPATH
rawtime
rbegin
Rbp
RBUTTON
Expand Down Expand Up @@ -1793,7 +1780,6 @@ RENAMEONCOLLISION
Renamer
Reparse
REPLACEWITH
reportd
Reportx
requery
requerying
Expand Down Expand Up @@ -1896,7 +1882,6 @@ serializer
serizalization
serverside
SETCONTEXT
SETCURSOR
setcursor
SETFOCUS
SETFOREGROUND
Expand Down Expand Up @@ -1928,7 +1913,6 @@ SHELLDLL
shellex
SHELLEXECUTEINFO
SHELLEXECUTEINFOW
Shellscalingapi
shellscalingapi
Shelveset
SHFILEINFO
Expand All @@ -1948,12 +1932,12 @@ SHORTCUTSTARTWITHMODIFIER
Shortcuttool
shortdate
SHORTPATH
should've
showcolorname
SHOWDEFAULT
SHOWELEVATIONPROMPT
SHOWMAXIMIZED
SHOWMINIMIZED
SHOWNA
SHOWNORMAL
showwindow
shtypes
Expand All @@ -1980,7 +1964,6 @@ SIZENWSE
sizeof
SIZEWE
sketchapp
SKIPDOTNETINSTALL
SKIPOWNPROCESS
sku
SKYBLUE
Expand Down Expand Up @@ -2047,7 +2030,6 @@ stdin
stdlib
STDMETHODCALLTYPE
STDMETHODIMP
Stdout
stdout
STEPIT
stgm
Expand All @@ -2067,7 +2049,6 @@ stringtable
stringval
strsafe
strutil
STTNGS
sttngs
Stubless
STYLECHANGED
Expand Down Expand Up @@ -2106,7 +2087,6 @@ SYSDEADCHAR
SYSICONINDEX
SYSKEY
syskeydown
SYSKEYUP
syskeyup
syslog
SYSMENU
Expand Down Expand Up @@ -2164,7 +2144,6 @@ THISCOMPONENT
thre
tif
TILEDWINDOW
timeinfo
Timeline
timeunion
timeutil
Expand All @@ -2182,8 +2161,8 @@ toggleright
toggleswitch
toolbar
Toolchain
toolset
Toolset
toolset
tooltip
toolwindow
TOPDOWNDIB
Expand Down Expand Up @@ -2347,7 +2326,6 @@ VSTT
VTABLE
Vtbl
Vx
walkthrough
watsonportal
wav
WBounds
Expand All @@ -2365,12 +2343,11 @@ wcslen
wcsncmp
wcsnicmp
wdp
WDS
wds
wdupenv
weakme
webapp
webcam
Webcam
webclient
webkit
webp
Expand All @@ -2388,7 +2365,6 @@ wiki
wikipedia
wil
wildcards
WINAPI
winapi
winauto
wincolor
Expand Down Expand Up @@ -2435,7 +2411,6 @@ wixtoolset
WIXUI
WKSG
wmain
wmi
WMKEYDOWN
WMKEYUP
wmonk
Expand All @@ -2450,11 +2425,9 @@ WNDPROC
woff
wofstream
wordpad
wordpress
workaround
workflow
wostream
wostringstream
wox
wparam
wpf
Expand Down Expand Up @@ -2511,7 +2484,6 @@ XStr
XToolset
xunit
XY
YAML
yaml
YAngle
YDiff
Expand Down
4 changes: 1 addition & 3 deletions src/modules/fancyzones/lib/FancyZones.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,9 +702,7 @@ void FancyZones::ToggleEditor() noexcept
if (showDpiWarning)
{
// We must show the message box in a separate thread, since this code is called from a low-level
// keyboard hook callback, and launching messageboxes from it has unexpected side effects,
// like triggering EVENT_SYSTEM_MOVESIZEEND prematurely.
// TODO: understand the root cause of this, until then it's commented out.
// keyboard hook callback, and launching messageboxes from it has unexpected side effects
//std::thread{ [] {
// MessageBoxW(nullptr,
// GET_RESOURCE_STRING(IDS_SPAN_ACROSS_ZONES_WARNING).c_str(),
Expand Down
2 changes: 1 addition & 1 deletion src/modules/fancyzones/lib/ZoneWindowDrawing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ void ZoneWindowDrawing::Show(unsigned animationMillis)

if (!m_animation)
{
ShowWindow(m_window, SW_SHOWDEFAULT);
ShowWindow(m_window, SW_SHOWNA);
if (animationMillis > 0)
{
m_animation.emplace(AnimationInfo{ std::chrono::steady_clock().now(), animationMillis });
Expand Down

0 comments on commit 4f594c9

Please sign in to comment.