   # * `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


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


  # * `width` The {Number} of pixels.
  # * `height` The {Number} of pixels.
  setSize: (width, height) ->
    width = Math.round(width)
    height = Math.round(height)
    @getCurrentWindow().setSize(width, height)

  # Essential: Transition and set the size of the current window.
