mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-14 00:09:24 +01:00
Qt/MappingButton: Fix window becoming unresponsive after mapping
This commit is contained in:
parent
dfb1dbad47
commit
c39f00194d
@ -104,7 +104,6 @@ void MappingButton::Detect()
|
|||||||
|
|
||||||
installEventFilter(BlockUserInputFilter::Instance());
|
installEventFilter(BlockUserInputFilter::Instance());
|
||||||
grabKeyboard();
|
grabKeyboard();
|
||||||
grabMouse();
|
|
||||||
|
|
||||||
// Make sure that we don't block event handling
|
// Make sure that we don't block event handling
|
||||||
std::thread thread([this] {
|
std::thread thread([this] {
|
||||||
@ -118,7 +117,6 @@ void MappingButton::Detect()
|
|||||||
const auto expr = MappingCommon::DetectExpression(
|
const auto expr = MappingCommon::DetectExpression(
|
||||||
m_reference, dev.get(), m_parent->GetController()->GetDefaultDevice());
|
m_reference, dev.get(), m_parent->GetController()->GetDefaultDevice());
|
||||||
|
|
||||||
releaseMouse();
|
|
||||||
releaseKeyboard();
|
releaseKeyboard();
|
||||||
removeEventFilter(BlockUserInputFilter::Instance());
|
removeEventFilter(BlockUserInputFilter::Instance());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user