From d18889b2d17d4e79e412c9263f28b24580b28a89 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 28 Aug 2014 17:48:25 -0400 Subject: [PATCH] Decided to defer Table WM_MOUSELEAVE (Windows) to later. --- redo/future | 2 ++ redo/mergeback/table_mouseleave_windows.c | 4 ++++ redo/table_windows.c | 5 ----- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 redo/mergeback/table_mouseleave_windows.c diff --git a/redo/future b/redo/future index 55faf49..cc010b7 100644 --- a/redo/future +++ b/redo/future @@ -75,11 +75,13 @@ windows - tabbing on an empty group infinite loops (same bug as with tabs) - groupbox line behind groupbox text - scrolling edit controls in Areas back into view don't cause redraw + - need to figure out the WM_MOUSELEAVE tango (see mergeback/table_mouseleave_windows.c) gtk+ - Area: figure out how Enter is processed in Entry https://git.gnome.org/browse/gtk+/tree/gtk/gtkwindow.c#n1229 - Table: figure out how to allow empty selection by clicking in an empty area - After applying the AreaHandler.Key() change, -small crashes in 3.10/distribution but not 3.14/jhbuild + - will need to install 14.04 somewhere for this gtk+, windows - Area: keyboard scrolling gtk+, mac os x diff --git a/redo/mergeback/table_mouseleave_windows.c b/redo/mergeback/table_mouseleave_windows.c new file mode 100644 index 0000000..9412c40 --- /dev/null +++ b/redo/mergeback/table_mouseleave_windows.c @@ -0,0 +1,4 @@ + case WM_MOUSELEAVE: + tablePushed(t->gotable, -1, -1); // in case button held as drag out + // and let the list view do its thing + return (*fv_DefSubclassProc)(hwnd, uMsg, wParam, lParam); diff --git a/redo/table_windows.c b/redo/table_windows.c index 124dffb..2c956f5 100644 --- a/redo/table_windows.c +++ b/redo/table_windows.c @@ -88,11 +88,6 @@ static LRESULT CALLBACK tableSubProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM handle(hwnd, lParam, tableToggled, t->gotable); // and let the list view do its thing return (*fv_DefSubclassProc)(hwnd, uMsg, wParam, lParam); - case WM_MOUSELEAVE: - // TODO doesn't work - tablePushed(t->gotable, -1, -1); // in case button held as drag out - // and let the list view do its thing - return (*fv_DefSubclassProc)(hwnd, uMsg, wParam, lParam); case msgLoadImageList: tableLoadImageList(hwnd, t, (HIMAGELIST) lParam); return 0;