diff --git a/MapperGLCanvas.cpp b/MapperGLCanvas.cpp index b2fb6cf..b1c1183 100644 --- a/MapperGLCanvas.cpp +++ b/MapperGLCanvas.cpp @@ -116,7 +116,7 @@ void MapperGLCanvas::keyPressEvent(QKeyEvent* event) p.y += yMove; quad.setVertex(current, p); - draw(); + updateGL(); } void MapperGLCanvas::paintEvent(QPaintEvent* event) diff --git a/main.cpp b/main.cpp index 88b9c7a..c3aed0f 100644 --- a/main.cpp +++ b/main.cpp @@ -30,6 +30,9 @@ int main(int argc, char *argv[]) splitter.addWidget(&sourceCanvas); splitter.addWidget(&destinationCanvas); + sourceCanvas.setFocusPolicy(Qt::ClickFocus); + destinationCanvas.setFocusPolicy(Qt::ClickFocus); + splitter.setWindowTitle(QObject::tr("Libremapping")); splitter.resize(640, 480); splitter.show();