Browse Source

Fixed text selection workaround on MacOS

merge-requests/389/head
eidheim 8 years ago
parent
commit
c57ebca430
  1. 2
      src/source.cc

2
src/source.cc

@ -2725,7 +2725,7 @@ bool Source::View::on_motion_notify_event(GdkEventMotion *event) {
// Workaround for drag-and-drop crash on MacOS // Workaround for drag-and-drop crash on MacOS
// TODO 2018: check if this bug has been fixed // TODO 2018: check if this bug has been fixed
#ifdef __APPLE__ #ifdef __APPLE__
if((event->state & GDK_BUTTON1_MASK) == 0) if((event->state & GDK_BUTTON1_MASK) == 0 || (event->state&GDK_SHIFT_MASK)>0)
return Gsv::View::on_motion_notify_event(event); return Gsv::View::on_motion_notify_event(event);
else { else {
int x, y; int x, y;

Loading…
Cancel
Save