To: vim-dev@vim.org Subject: Patch 6.0ax.018 Fcc: outbox From: Bram Moolenaar ------------ Patch 6.0ax.018 Problem: GTK: After dragging a scrollbar, switching to another window doesn't update the scrollbar. (Cristiano De Michele) Solution: Reset the flag that tells the scrollbar is still being dragged. Files: src/gui.c *** ../vim60ax.17/src/gui.c Sun Sep 16 17:30:30 2001 --- src/gui.c Tue Sep 25 10:58:10 2001 *************** *** 1539,1544 **** --- 1539,1549 ---- if (can_update_cursor && force_cursor) gui_update_cursor(force_cursor, TRUE); + /* When switching to another window the dragging must have stopped. + * Required for GTK, dragged_sb isn't reset. */ + if (old_curwin != curwin) + gui.dragged_sb = SBAR_NONE; + /* Update the scrollbars after clearing the screen or when switched * to another window. * Update the horizontal scrollbar always, it's difficult to check all *************** *** 1551,1559 **** /* * We need to make sure this is cleared since Athena doesn't tell us when ! * he is done dragging. */ ! #ifdef FEAT_GUI_ATHENA gui.dragged_sb = SBAR_NONE; #endif --- 1556,1564 ---- /* * We need to make sure this is cleared since Athena doesn't tell us when ! * he is done dragging. Do the same for GTK. */ ! #if defined(FEAT_GUI_ATHENA) || defined(FEAT_GUI_GTK) gui.dragged_sb = SBAR_NONE; #endif *** ../vim60ax.17/src/version.c Mon Sep 24 23:06:43 2001 --- src/version.c Tue Sep 25 11:29:14 2001 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 18, /**/ -- BEDEVERE: Wait. Wait ... tell me, what also floats on water? ALL: Bread? No, no, no. Apples .... gravy ... very small rocks ... ARTHUR: A duck. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ ((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim ))) \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///