(guarantee-fix-widget widget 'set-fix-widget-motion-handler!)
(guarantee-procedure-of-arity handler 4 'set-fix-widget-motion-handler!)
(vector-set!
- (fix-widget-event-handlers widget) (C-enum "GDK_MOTION_NOTIFY")
+ (fix-widget-event-handlers widget)
+ (C-enum "GDK_MOTION_NOTIFY")
(named-lambda (fix-widget-motion-handler widget GdkEvent)
- (let ((handled?
- (handler widget
- (->modifiers (C-> GdkEvent "GdkEventMotion state"))
- (floor->exact (C-> GdkEvent "GdkEventMotion x"))
- (floor->exact (C-> GdkEvent "GdkEventMotion y")))))
- (C-call "gdk_window_get_pointer" #f
- (C-> GdkEvent "GdkEventMotion window") 0 0 0)
- handled?))))
+ (handler widget
+ (->modifiers (C-> GdkEvent "GdkEventMotion state"))
+ (floor->exact (C-> GdkEvent "GdkEventMotion x"))
+ (floor->exact (C-> GdkEvent "GdkEventMotion y"))))))
(define ->modifiers
(let ((names (make-vector 32 #f)))
;; Test debugging in a callback.
(bkpt 'Test))
- (if (= type (C-enum "GDK_MOTION_NOTIFY"))
+ ;; Unnecessary and deprecated.
+ #;(if (= type (C-enum "GDK_MOTION_NOTIFY"))
(C-call "gdk_window_get_pointer" #f
(C-> GdkEvent "GdkEventMotion window") 0 0 0))
#f ;; continue handling.