# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1047915537 0 # Node ID 3431e445d8315ab70f882b1f2443f616ac258eea # Parent 54aafc134652d7a2dbdbfa519e72b9a987ba44f5 Woops, screwed up the splitbar tab direction on Windows. diff -r 54aafc134652 -r 3431e445d831 dwtest.c --- a/dwtest.c Mon Mar 17 15:33:51 2003 +0000 +++ b/dwtest.c Mon Mar 17 15:38:57 2003 +0000 @@ -135,7 +135,13 @@ int DWSIGNAL keypress_callback(HWND window, char ch, int vk, int state, void *data) { - fprintf(stderr,"got keypress %c %d %d\n", ch, vk, state); + FILE *fp = fopen("log", "a+"); + + if(fp) + { + fprintf(fp,"got keypress %c %d %d\n", ch, vk, state); + fclose(fp); + } return 0; } diff -r 54aafc134652 -r 3431e445d831 win/dw.c --- a/win/dw.c Mon Mar 17 15:33:51 2003 +0000 +++ b/win/dw.c Mon Mar 17 15:38:57 2003 +0000 @@ -548,8 +548,8 @@ if(strncmp(tmpbuf, SplitbarClassName, strlen(SplitbarClassName)+1)==0) { - /* Try the top or left box */ - HWND mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_topleft"); + /* Then try the bottom or right box */ + HWND mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_bottomright"); if(mybox) { @@ -559,8 +559,8 @@ return 1; } - /* Then try the bottom or right box */ - mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_bottomright"); + /* Try the top or left box */ + mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_topleft"); if(mybox) { @@ -675,8 +675,8 @@ if(strncmp(tmpbuf, SplitbarClassName, strlen(SplitbarClassName)+1)==0) { - /* Then try the bottom or right box */ - HWND mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_bottomright"); + /* Try the top or left box */ + HWND mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_topleft"); if(mybox) { @@ -686,8 +686,8 @@ return 1; } - /* Try the top or left box */ - mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_topleft"); + /* Then try the bottom or right box */ + mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_bottomright"); if(mybox) {