mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 04:53:27 +02:00
fix release keys on x11, remove ping addon, fix minor issue in outfit render, fix emblem updates
This commit is contained in:
@@ -91,6 +91,19 @@ void PlatformWindow::processKeyRelease(Fw::Key keyCode)
|
||||
}
|
||||
}
|
||||
|
||||
void PlatformWindow::releaseAllKeys()
|
||||
{
|
||||
for(auto it : m_keysState) {
|
||||
Fw::Key keyCode = it.first;
|
||||
bool pressed = it.second;
|
||||
|
||||
if(!pressed)
|
||||
continue;
|
||||
|
||||
processKeyRelease(keyCode);
|
||||
}
|
||||
}
|
||||
|
||||
void PlatformWindow::fireKeysPress()
|
||||
{
|
||||
// avoid massive checks
|
||||
@@ -119,4 +132,3 @@ void PlatformWindow::fireKeysPress()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -94,6 +94,7 @@ protected:
|
||||
|
||||
void processKeyDown(Fw::Key keyCode);
|
||||
void processKeyRelease(Fw::Key keyCode);
|
||||
void releaseAllKeys();
|
||||
void fireKeysPress();
|
||||
|
||||
std::map<int, Fw::Key> m_keyMap;
|
||||
|
@@ -710,6 +710,7 @@ void X11Window::poll()
|
||||
break;
|
||||
case FocusOut:
|
||||
m_focused = false;
|
||||
releaseAllKeys();
|
||||
break;
|
||||
case Expose:
|
||||
// window needs redraw
|
||||
|
Reference in New Issue
Block a user