diff --git a/dep/osdialog b/dep/osdialog index f2624f7c..06d7e422 160000 --- a/dep/osdialog +++ b/dep/osdialog @@ -1 +1 @@ -Subproject commit f2624f7cee98aa51b80ffbd9efd47495638890da +Subproject commit 06d7e4220deae2f238c35e01a0b108da05f39745 diff --git a/src/window.cpp b/src/window.cpp index c2ab422e..a7f57916 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -99,11 +99,9 @@ static void mouseButtonCallback(GLFWwindow *win, int button, int action, int mod Window *window = (Window*) glfwGetWindowUserPointer(win); #if defined ARCH_MAC // Remap Ctrl-left click to right click on Mac - if (button == GLFW_MOUSE_BUTTON_LEFT) { - if (mods & GLFW_MOD_CONTROL) { - button = GLFW_MOUSE_BUTTON_RIGHT; - mods &= ~GLFW_MOD_CONTROL; - } + if (button == GLFW_MOUSE_BUTTON_LEFT && (mods & GLFW_MOD_CONTROL)) { + button = GLFW_MOUSE_BUTTON_RIGHT; + mods &= ~GLFW_MOD_CONTROL; } #endif