Skip to content

Commit

Permalink
(#26) TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Dec 25, 2019
1 parent 5876832 commit 5521317
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 5521317

Please sign in to comment.