Commits

Anonymous committed 7f912d1

Add support for X.

Comments (0)

Files changed (1)

   (darkroom-remember 'frame-left (frame-parameter nil 'left))
   (darkroom-remember 'frame-top (frame-parameter nil 'top))
   ; - set
-  (cond ((eq window-system 'w32)
-           (w32-fullscreen-on))
-         ((eq window-system 'mac)
-           (set-frame-parameter nil 'fullscreen 'fullboth)))
+  (if (eq window-system 'w32)
+      (w32-fullscreen-on)
+    (set-frame-parameter nil 'fullscreen 'fullboth))
   (darkroom-mode-set-enabled t)
   (message (format "darkroom mode enabled on %s" (selected-frame))))
 
 		       (darkroom-recall 'right-margin-width))))
   (darkroom-mode-update-window)
   ; - restore frame size	 
-  (cond ((eq window-system 'w32) 
-           (w32-fullscreen-off))
-         ((eq window-system 'mac)
-         (set-frame-parameter nil 'fullscreen nil)))
+  (if (eq window-system 'w32) 
+      (w32-fullscreen-off)
+    (set-frame-parameter nil 'fullscreen nil))
   (darkroom-mode-recall-frame-size)
   (darkroom-mode-set-enabled nil)
   (message (format "darkroom-mode disabled on %s" (selected-frame)))