Windows: distinguish left and right modifiers

This is just some workaround until we either use a different input api for keyboards or until we refactor the keyboard_pad_handler to use Qt with native scan codes
This commit is contained in:
Megamouse 2020-06-22 20:19:02 +02:00
parent bec6bde919
commit b5f01372ee
3 changed files with 70 additions and 10 deletions

View file

@ -106,8 +106,8 @@ void gs_frame::showEvent(QShowEvent *event)
{
// we have to calculate new window positions, since the frame is only known once the window was created
// the left and right margins are too big on my setup for some reason yet unknown, so we'll have to ignore them
int x = geometry().left(); //std::max(geometry().left(), frameMargins().left());
int y = std::max(geometry().top(), frameMargins().top());
const int x = geometry().left(); //std::max(geometry().left(), frameMargins().left());
const int y = std::max(geometry().top(), frameMargins().top());
setPosition(x, y);