shell_integration: Fix disappearing context menus on Windows #2898
authorJocelyn Turcotte <jturcotte@woboq.com>
Fri, 13 Mar 2015 17:30:45 +0000 (18:30 +0100)
committerJocelyn Turcotte <jturcotte@woboq.com>
Fri, 13 Mar 2015 19:53:59 +0000 (20:53 +0100)
commit5264a8c7f6182ff530332bce62a0aba777d93fc1
treee161cff313c4b149e79b9c78545ebbbda80d8776
parent6c4b7f1479eff4b4c90bab0c82d3e6a7c1bfc8ed
shell_integration: Fix disappearing context menus on Windows #2898

Since each new connection to the socket API would trigger a broadcast
of REGISTER_PATH to all existing connections, opening the context menu
would trigger a SHChangeNotify call of the root directory through
the overlay icon extension, which is currently also connected to the
socket API, waiting for changes.

Fix the issue by sending the initial REGISTER_PATH automatic response
only to the connecting socket.
src/gui/socketapi.cpp
src/gui/socketapi.h