Skip to content

offscreen: implement PlatformWindow::on_display_changed for OffscreenPlatformWindow - #38

Merged
madcodelife merged 1 commit into
longbridge:mainfrom
yuanzhuang-svg:feature/yz/offscreen-on-display-changed
Oct 13, 2026
Merged

madcodelife merged 1 commit into
longbridge:mainfrom
yuanzhuang-svg:feature/yz/offscreen-on-display-changed

Conversation

@yuanzhuang-svg

Copy link
Copy Markdown

Follow-up to the 0.3.9 bump (#36). gpui-pre 0.3.9 added PlatformWindow::on_display_changed; #36 implemented it for IosWindow and AndroidPlatformWindow but missed OffscreenPlatformWindow in src/offscreen.rs, which only compiles under the offscreen feature. gpui-mobile CI doesn't enable offscreen, so it passed; a downstream that turns offscreen on (ai-chat's share-as-image) fails to build without it.

No-op impl — an offscreen window has no display to change.

Verified: cargo check --target aarch64-apple-ios --features offscreen passes.

…PlatformWindow

gpui-pre 0.3.9 added PlatformWindow::on_display_changed; the earlier 0.3.9
bump implemented it for IosWindow and AndroidPlatformWindow but missed
OffscreenPlatformWindow, which is only compiled under the `offscreen` feature
(gpui-mobile's CI doesn't enable it, so it went uncaught; a downstream that
turns `offscreen` on — e.g. ai-chat's share-as-image — fails to build without
this). No-op: an offscreen window has no display to change.
@madcodelife
madcodelife merged commit 9a2cf8b into longbridge:main Oct 13, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants