mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-31 00:32:53 +00:00
Merge pull request #6953 from spycrab/qt_map_unresponsive
Qt/MappingButton: Fix window becoming unresponsive after mapping
This commit is contained in:
commit
a60bba37cd
@ -106,7 +106,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] {
|
||||||
@ -169,7 +168,6 @@ void MappingButton::Detect()
|
|||||||
m_parent->GetController()->GetDefaultDevice());
|
m_parent->GetController()->GetDefaultDevice());
|
||||||
}
|
}
|
||||||
|
|
||||||
releaseMouse();
|
|
||||||
releaseKeyboard();
|
releaseKeyboard();
|
||||||
removeEventFilter(BlockUserInputFilter::Instance());
|
removeEventFilter(BlockUserInputFilter::Instance());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user