shell: set the popup grab button as pressed only if it actually is
authorGiulio Camuffo <giuliocamuffo@gmail.com>
Wed, 27 Mar 2013 17:05:26 +0000 (18:05 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 27 Mar 2013 17:11:06 +0000 (13:11 -0400)
commit1b4b61ace327ee6a56096b5efbb283375d8a1702
tree1bc80dbc0e01c6f67e0c9527994807f80e79bb45
parent5085a75dee2b60edaeba7e506e496aeb62810fb6
shell: set the popup grab button as pressed only if it actually is

This ensures the popup_grab.initial_up field isn't reset to 0
if the popup was not opened because of a mouse press but because
of moving the mouse with a popup already open. Not doing so will
make the first click outside the client area go ignored.
src/shell.c