diff --git a/basis/ui/backend/windows/windows.factor b/basis/ui/backend/windows/windows.factor index 0e0de67440..06ea870196 100755 --- a/basis/ui/backend/windows/windows.factor +++ b/basis/ui/backend/windows/windows.factor @@ -569,6 +569,9 @@ H{ } clone wm-handlers set-global [ [ execute( -- wm ) add-wm-handler ] with each ] [ wm-handlers get-global set-at ] if ; +: remove-wm-handler ( wm -- ) + wm-handlers get-global delete-at ; + [ handle-wm-close 0 ] WM_CLOSE add-wm-handler [ 4dup handle-wm-paint DefWindowProc ] WM_PAINT add-wm-handler