Skip to content

Commit

Permalink
remove (the unused) 'display-size' to avoid moving the 'size' struct …
Browse files Browse the repository at this point in the history
…around
  • Loading branch information
Metaxal committed Jan 23, 2014
1 parent 13a3d7b commit 285a4ce
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions display.rkt
Expand Up @@ -12,13 +12,8 @@
racket/match
)

;; TODO: update when xrandr is invoked (ConfigureNotify)
;; But should better use the (head-infos)
(define* (display-size [screen 0])
"Returns the values of width and height of the given screen.
Warning: These values may not reflect the current screen widths if they have changed?!"
(values (XDisplayWidth (current-display) screen)
(XDisplayHeight (current-display) screen)))
;; Use (head-infos) if you want information about the size of the heads.
;; Display size may not be up to date with actual screens.

(define* (display-width [screen 0])
(XDisplayWidth (current-display) screen))
Expand Down

0 comments on commit 285a4ce

Please sign in to comment.