diff options
author | Uri Lublin <uril@redhat.com> | 2011-12-13 17:09:58 +0200 |
---|---|---|
committer | Uri Lublin <uril@redhat.com> | 2011-12-21 13:05:12 +0200 |
commit | df17a852fa23ab2bb47038313eda78f6614dd7f0 (patch) | |
tree | 8b3f0f95f3d4ac8c8c1d5dda7e935f9bfa8998a0 /server/main_dispatcher.h | |
parent | 7d8cc134bf0b2175cae69c08bfe07b859d45a306 (diff) | |
download | spice-df17a852fa23ab2bb47038313eda78f6614dd7f0.tar.gz spice-df17a852fa23ab2bb47038313eda78f6614dd7f0.tar.xz spice-df17a852fa23ab2bb47038313eda78f6614dd7f0.zip |
client: foreign-menu: pass "active" param when creating a ForeignMenu (#769020)
The default stays the same -- false.
A race could prevent setting ForeignMenu::_active correctly.
That happened when Application::on_app_activated was called before
_foriegn_menu was created. When foriegn_menu was created its
_active defaults to false, and that has not changed, until focus
was taken out and back in spice-client window.
This caused usbrdr to sometimes not auto-share devices, unless
the user switched focus to a different application and back to
spicec.
The fix updates ForiegnMenu::_active upon creation.
(cherry picked from commit fdcef173645e564be71f1b73d476c0716e91663d)
Diffstat (limited to 'server/main_dispatcher.h')
0 files changed, 0 insertions, 0 deletions