Skip to content

fix improper display size reporting when running nested #14

Open
mathew-dennis wants to merge 1 commit into
cutie-shell:cutiefrom
mathew-dennis:nested
Open

fix improper display size reporting when running nested #14
mathew-dennis wants to merge 1 commit into
cutie-shell:cutiefrom
mathew-dennis:nested

Conversation

@mathew-dennis

Copy link
Copy Markdown
Contributor

currently, when running in ubuntu the composer reports scale factor and dimensions as zero which crashes cutie shell components . this pr adds a default fall back to handle that situation

  • Added a 720x1280 fallback in CwlCompositor::create() to prevent initial geometry being reported as 0x0.
  • Implemented GlWindow::resizeEvent to synchronize the Wayland output mode with the physical window size.
  • Added scale factor guards to ensure m_scaleFactor is never 0, preventing "division by zero" protocol crashes in clients.
  • Improved stability with null-pointer checks in event handlers.

- Added a 720x1280 fallback in CwlCompositor::create() to prevent
  initial geometry being reported as 0x0.
- Implemented GlWindow::resizeEvent to synchronize the Wayland 
  output mode with the physical window size.
- Added scale factor guards to ensure m_scaleFactor is never 0, 
  preventing "division by zero" protocol crashes in clients.
- Improved stability with null-pointer checks in event handlers.
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.

1 participant