Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

view: don't try to restore to very small width/height on unmaximize #1938

Merged
merged 1 commit into from
Jun 28, 2024
Merged
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
8 changes: 5 additions & 3 deletions src/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -841,10 +841,12 @@ view_store_natural_geometry(struct view *view)

/**
* If an application was started maximized or fullscreened, its
* natural_geometry width/height may still be zero in which case we set
* some fallback values. This is the case with foot and Qt applications.
* natural_geometry width/height may still be zero (or very small
* values) in which case we set some fallback values. This is the case
* with foot and some Qt/Tk applications.
*/
if (wlr_box_empty(&view->pending)) {
if (view->pending.width < LAB_MIN_VIEW_WIDTH
|| view->pending.height < LAB_MIN_VIEW_HEIGHT) {
set_fallback_geometry(view);
} else {
view->natural_geometry = view->pending;
Expand Down