   "Checks that the size vector is exactly two elements. If not, throws
   an exception, otherwise returns the size vector unmodified."
   [size]
-  (cond (= size :fullscreen)
-        (do
-          ; (japplemenubar.JAppleMenuBar/hide) on os x???
-          (display-size))
+  (cond (= size :fullscreen) (display-size)
         (and (coll? size) (= 2 (count size))) size
         :else (throw (IllegalArgumentException.
                       (str "Invalid size definition:" size ". Was expecting :fullscreen or 2 elements vector: [x-size y-size].")))))

  This string can be passed to native Processing methods."
  [renderer]
  (resolve-constant-key renderer renderer-modes))


(defn- display-size
  "Returns size of screen. If there are 2 or more screens it probably return size of

                                  :draw-fn draw-fn
                                  :renderer renderer
                                  :size size
                                  :target-frame-rate (atom 60)
                                  :decor decor}
                                 listeners)
        prx-obj           (quil.Applet. applet-state)]
    (doto prx-obj
