summaryrefslogtreecommitdiff
path: root/src/gui_w48.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-05-22 22:03:39 +0000
committerBram Moolenaar <Bram@vim.org>2005-05-22 22:03:39 +0000
commit0d40699d6defaf6f0d308c2d96ae885b013ad8db (patch)
treefb5d07dfff2bc73dd5ddd37250c312c713775c31 /src/gui_w48.c
parentf95dc3b8234c05116f71aee5a72ddd8d9afd4718 (diff)
downloadvim-0d40699d6defaf6f0d308c2d96ae885b013ad8db.zip
updated for version 7.0075
Diffstat (limited to 'src/gui_w48.c')
-rw-r--r--src/gui_w48.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui_w48.c b/src/gui_w48.c
index 48a87d945..4729f9b1d 100644
--- a/src/gui_w48.c
+++ b/src/gui_w48.c
@@ -2512,6 +2512,14 @@ get_scroll_flags(void)
RECT rcVim, rcOther, rcDest;
GetWindowRect(s_hwnd, &rcVim);
+
+ /* Check if the window is partly above or below the screen. We don't care
+ * about partly left or right of the screen, it is not relevant when
+ * scrolling up or down. */
+ if (rcVim.top < 0 || rcVim.bottom > GetSystemMetrics(SM_CYFULLSCREEN))
+ return SW_INVALIDATE;
+
+ /* Check if there is an window (partly) on top of us. */
for (hwnd = s_hwnd; (hwnd = GetWindow(hwnd, GW_HWNDPREV)) != (HWND)0; )
if (IsWindowVisible(hwnd))
{