Skip to content

patch: fix screenshot crashing when image height exceeds width enough - #317

Merged
danirabbit merged 1 commit into
elementary:mainfrom
Tbusk:patch/screenshot-window-sizings
Aug 20, 2025
Merged

danirabbit merged 1 commit into
elementary:mainfrom
Tbusk:patch/screenshot-window-sizings

Conversation

@Tbusk

@Tbusk Tbusk commented Aug 19, 2025

Copy link
Copy Markdown
Contributor

Closes #316.

Description

This addresses the issue discussed in issue #316. To summarize what is in that issue, when taking a screenshot and the height is 1/4x or more greater than the width (approx), it will segfault with my setup.

Two solutions were found, but the simplest was in this PR, which is setting a default window height. The other was to use a deprecated method (which is shown in the issue).

As proof of the fix, here is a screenshot whose dimensions will crash the pre-fix app:

image

Closes #316.

## Description

This addresses the issue discussed in issue #316. To summarize what is in that issue, when taking a screenshot and the height is 1/4x or more greater than the width (approx), it will segfault.

Two solutions were found, but the simplest was in this PR, which is setting a default window height. The other was to use a deprecated method (which is shown in the issue).
@Tbusk Tbusk changed the title patch: patch screenshot crashing when image height exceeds width enough patch: fix screenshot crashing when image height exceeds width enough Aug 19, 2025

@danirabbit danirabbit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Elegant solution! Nice job investigating and fixing this

@danirabbit
danirabbit merged commit 36414c9 into elementary:main Aug 20, 2025
3 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.

screenshot crashes after capture

2 participants