Fix container not showing on reconnect#114
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughAdds guards to skip navigation and environment re-init when an existing xEnvironment is present. XServerScreen now reuses an existing XServer and bypasses environment setup if available. Removes prior environment-shifting path. Renderer resets textures on surface creation via new Texture.invalidate and DrawableManager.all, invalidating all drawables before requesting a render. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant XServerScreen
participant PluviaApp
participant XServerComponent
participant XServerView
User->>XServerScreen: Open XServer screen
XServerScreen->>PluviaApp: Check xEnvironment
alt xEnvironment is null
XServerScreen->>XServerScreen: Init container/env
XServerScreen->>XServerScreen: Create new XServer
else xEnvironment exists
XServerScreen->>XServerComponent: Get existing XServer
end
XServerScreen->>XServerView: Provide xServerToUse
sequenceDiagram
participant GLSurface
participant GLRenderer
participant XServer
participant DrawableManager
participant Drawable
participant XServerView
GLSurface->>GLRenderer: onSurfaceCreated()
GLRenderer->>XServer: get drawableManager
GLRenderer->>DrawableManager: all()
loop each drawable
GLRenderer->>Drawable: getTexture().invalidate()
end
GLRenderer->>Drawable: Invalidate root cursor texture
GLRenderer->>GLRenderer: updateScene()
GLRenderer->>XServerView: requestRender()
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (5)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
Bug Fixes
Refactor