summaryrefslogtreecommitdiff
path: root/src/corelib/x11
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-09-22 10:24:41 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-09-23 16:24:42 +0200
commita4b14f1174146845b9623240fb3fe780ee50585d (patch)
tree49519803e0d042e31b61efe7089e18aa15f4d8fb /src/corelib/x11
parentfba5173d0b81366dac1c4aed55d8c1b82ab7eb77 (diff)
downloadfpGUI-a4b14f1174146845b9623240fb3fe780ee50585d.tar.xz
Two new MouseCursor shapes added. mcDrag & mcNoDrop
* X11 DND now changes the mouse cursor depending if a drop target is available or not
Diffstat (limited to 'src/corelib/x11')
-rw-r--r--src/corelib/x11/fpg_x11.pas4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/x11/fpg_x11.pas b/src/corelib/x11/fpg_x11.pas
index f6e33236..549c6a80 100644
--- a/src/corelib/x11/fpg_x11.pas
+++ b/src/corelib/x11/fpg_x11.pas
@@ -2283,6 +2283,8 @@ begin
mcCross: shape := XC_crosshair;
mcHourGlass: shape := XC_watch;
mcHand: shape := XC_hand2;
+ mcDrag: shape := XC_target;
+ mcNoDrop: shape := XC_pirate;
else
shape := XC_left_ptr; //XC_arrow;
end;
@@ -3292,12 +3294,14 @@ begin
FDropAccepted := True;
FAcceptedAction := AAction;
{ TODO: Change mouse cursor to show drop accepted/valid }
+ FSource.MouseCursor := mcDrag;
end
else
begin
FDropAccepted := False;
FAcceptedAction := X.None;
{ TODO: change mouse cursor to show drop not valid }
+ FSource.MouseCursor := mcNoDrop;
end;
end;
{ TODO: If we waited to long, we have a timeout }