From 9f08a052d08967409d62affdcef256d6cd219efc Mon Sep 17 00:00:00 2001 From: Chris Young Date: Wed, 11 Jan 2012 21:41:55 +0000 Subject: Allow confining the pointer to part of the window during drags. Actually we aren't acting on this for any current drag types, but if we need to do so in the future (eg. frame resizing), this is the code to do it. The trap lasts 10 IntuiTicks so is re-asserted on every mouse move when an active drag is in effect. Drag type must be set to GDRAGGING_NONE to clear. svn path=/trunk/netsurf/; revision=13401 --- amiga/gui.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'amiga/gui.h') diff --git a/amiga/gui.h b/amiga/gui.h index 118470221..8b53f6377 100755 --- a/amiga/gui.h +++ b/amiga/gui.h @@ -106,6 +106,8 @@ struct gui_window_2 { struct AppIcon *appicon; /* iconify appicon */ struct DiskObject *dobj; /* iconify appicon */ struct Hook search_ico_hook; + gui_drag_type drag_op; + struct IBox *ptr_lock; }; struct gui_window -- cgit v1.2.3