Mercurial > vim
comparison src/gui_w48.c @ 5367:5481f188dcbb v7.4.035
updated for version 7.4.035
Problem: MS-Windows: The mouse pointer flickers when going from command
line mode to Normal mode.
Solution: Check for WM_NCMOUSEMOVE. (Ken Takata)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 22 Sep 2013 15:43:37 +0200 |
parents | 359743c1f59a |
children | 22d7af9ff3e5 |
comparison
equal
deleted
inserted
replaced
5366:e13fe8b20382 | 5367:5481f188dcbb |
---|---|
1006 HandleMouseHide(UINT uMsg, LPARAM lParam) | 1006 HandleMouseHide(UINT uMsg, LPARAM lParam) |
1007 { | 1007 { |
1008 static LPARAM last_lParam = 0L; | 1008 static LPARAM last_lParam = 0L; |
1009 | 1009 |
1010 /* We sometimes get a mousemove when the mouse didn't move... */ | 1010 /* We sometimes get a mousemove when the mouse didn't move... */ |
1011 if (uMsg == WM_MOUSEMOVE) | 1011 if (uMsg == WM_MOUSEMOVE || uMsg == WM_NCMOUSEMOVE) |
1012 { | 1012 { |
1013 if (lParam == last_lParam) | 1013 if (lParam == last_lParam) |
1014 return; | 1014 return; |
1015 last_lParam = lParam; | 1015 last_lParam = lParam; |
1016 } | 1016 } |