Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/windy/platforms/linux/x11.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1295,8 +1295,7 @@ proc pollEvents*() =
for window in windows:
pollEvents(window)

when defined(windyUseStdHttp):
pollHttp()
pollHttp()

proc closeIme*(window: Window) =
discard
Expand Down
11 changes: 5 additions & 6 deletions src/windy/platforms/win32/platform.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2393,6 +2393,10 @@ elif compileOption("threads"):
if state.onOpenCalled and state.onClose != nil:
state.onClose()

proc pollHttp*() =
## Polling for HTTP requests happens in the main windows loop.
discard

proc pollEvents*() =
# Draw first (in case a message closes a window or similar)
for window in windows:
Expand Down Expand Up @@ -2474,12 +2478,7 @@ proc pollEvents*() =
if (GetKeyState(VK_RSHIFT) and KF_UP) == 0:
activeWindow.handleButtonRelease(KeyRightShift)

when defined(windyUseStdHttp):
pollHttp()

proc pollHttp*() =
## Polling for HTTP requests happens in the main windows loop.
discard
pollHttp()

proc forceMousePos*(window: Window, mousePos: IVec2) =
## Forces mouse position to a place.
Expand Down
Loading