   # * `x` The {Number} of pixels.
   # * `y` The {Number} of pixels.
   setPosition: (x, y) ->
+    x = Math.round(x)
+    y = Math.round(y)
     ipc.send('call-window-method', 'setPosition', x, y)
 
   # Extended: Get the current window

  setSizeAnimated: (width, height, duration=400) ->
    cubicInOut = (t) -> if t<.5 then 4*t**3 else (t-1)*(2*t-2)**2+1
    win = @getCurrentWindow()
    startBounds = win.getBounds()

    startTime = Date.now()


  setMinimumWidth: (minWidth) ->
    win = @getCurrentWindow()
    minWidth = Math.round(minWidth)
    minHeight = win.getMinimumSize()[1]
    win.setMinimumSize(minWidth, minHeight)

