 
   applyBackground: ->
     if @packagesLoaded
-      workspaceView = qr 'atom-workspace'
+      workspaceView = @elements.workspace
       #console.log 'workspaceView',workspaceView
       if workspaceView?
         workspaceView.className += ' editor-background'

    bgSize=conf.image.backgroundSize
    if bgSize=='manual' then bgSize=conf.image.manualBackgroundSize
    if bgSize=='original' then bgSize='auto'
    body = qr 'body'
    factor = conf.box3d.mouseFactor
    polowaX = body.clientWidth // 2
    polowaY = body.clientHeight // 2


  updateBgPos: ->
    conf = @configWnd.get('editor-background')
    body = @elements.body
    factor = conf.box3d.mouseFactor
    polowaX = body.clientWidth // 2
    polowaY = body.clientHeight // 2
