     if throttle
       KD.utils.killWait @resizeNotifiersTimer
       @resizeNotifiersTimer = KD.utils.wait duration, fireResizeHandlers
-    else do fireResizeHandlers
-
-do -> new KDWindowController+    else do fireResizeHandlers

    view.drag event, delta

  getKeyView:->
    @keyView

  key:(event)->
    # log event.type, @keyView.constructor.name, @keyView.getOptions().name

      @setWindowProperties event
      @notifyWindowResizeListeners event

    addListener "dragenter", (event)=>
      unless @dragInAction
        @emit 'DragEnterOnWindow', event
        @setDragInAction yes

    addListener "dragleave", (event)=>
      unless 0 < event.clientX < @winWidth and
             0 < event.clientY < @winHeight
        @emit 'DragExitOnWindow', event
        @setDragInAction no

    addListener "drop", (event)=>
      @emit 'DragExitOnWindow', event
      @emit 'DropOnWindow', event
      @setDragInAction no

    layers = @layers

    addListener 'mousedown', (e)=>
      # $('.twipsy').remove() # temporary for beta
      lastLayer = layers.last

