Skip to content

Commit

Permalink
(#26) TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Dec 26, 2019
1 parent 51ec0ee commit fbeadeb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/screenshot.nim
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,14 @@ proc newScreenshot*(display: PDisplay, window: TWindow): Screenshot =

proc refresh*(screenshot: var Screenshot, display: PDisplay, window: TWindow) =
when defined(mitshm):
# TODO: MITSHM live update does not support window resizing
discard XShmGetImage(
display,
window, screenshot.image,
0.cint, 0.cint,
AllPlanes)
else:
# TODO: XGetImage live update does not support window resizing
screenshot.image = XGetSubImage(
display, window,
0, 0,
Expand Down

0 comments on commit fbeadeb

Please sign in to comment.