forked from SublimeCodeIntel/SublimeCodeIntel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmouse_release.patch
More file actions
28 lines (24 loc) · 757 Bytes
/
mouse_release.patch
File metadata and controls
28 lines (24 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Temporarily stop tracking the mouse movement. This is currently used on Linux
to send a notificaiton that mouse has been released by the editor, such as when
a blur event occurs whilst the mouse was down.
Index: src/Editor.cxx
===================================================================
--- src/Editor.cxx (revision 41207)
+++ src/Editor.cxx (working copy)
@@ -8411,16 +8450,19 @@
pdoc->ChangeLexerState(wParam, lParam);
break;
case SCI_SETIDENTIFIER:
SetCtrlID(wParam);
break;
case SCI_GETIDENTIFIER:
return GetCtrlID();
+ case SCI_RELEASEMOUSECAPTURE:
+ SetMouseCapture(false);
+
default:
return DefWndProc(iMessage, wParam, lParam);
}
//Platform::DebugPrintf("end wnd proc\n");
return 0l;
}