 
   isVisible: () =>
 
-  setFullscreen: () =>
+  setFullscreen: (@fullscreen) =>
+    @fullscreen = false
 
   setIcon: () =>
 
   setMode: (width, height, flags) =>
     @graphics.default_canvas.setDimensions(width, height)
 
-  setTitle: () =>
+  setTitle: (title) =>
+    window.document.title = title
 
+


  getMode: () =>

  getPixelScale: () =>

  getTitle: () =>

  getWidth: =>
    @graphics.getWidth()

  hasFocus: () =>

  hasMouseFocus: () =>


class Love.Window
  constructor: (@graphics) ->
    @fullscreen = false

  getDesktopDimensions: =>
    [window.screen.width, window.screen.height]

  getDimensions: =>
    [@getWidth(), @getHeight()]

  getDisplayCount: () =>

  getFullscreen: =>
    @fullscreen

  getFullscreenModes: () =>
    []

  getHeight: =>
    @graphics.getHeight()
