Skip to content

Commit

Permalink
Mouse capturing now works on secondary monitors
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 committed Jan 2, 2024
1 parent 413b619 commit 6875cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/qt_rendererstack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ int ignoreNextMouseEvent = 1;
void
RendererStack::mouseReleaseEvent(QMouseEvent *event)
{
if (!dopause && this->geometry().contains(event->pos()) &&
if (!dopause && this->geometry().contains(m_monitor_index >= 1 ? event->globalPos() : event->pos()) &&
(event->button() == Qt::LeftButton) && !mouse_capture &&
(isMouseDown & 1) && (kbd_req_capture || (mouse_get_buttons() != 0)) &&
(mouse_input_mode == 0)) {
Expand Down

0 comments on commit 6875cb0

Please sign in to comment.