(#97) bugfix: preventing some windows (e.g. emacs) from deciding on too small of size for their tile (#184)

This commit is contained in:
Matthew Kosarek 2024-06-29 14:15:55 -04:00 committed by GitHub
parent ec1d3bdebc
commit 458b5cc4fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -325,6 +325,15 @@ void OutputContent::handle_modify_window(const std::shared_ptr<miracle::WindowMe
tree->advise_restored_window(window);
}
// If we are trying to set the window size to something that we don't want it
// to be, then let's consume it.
if (!node->is_fullscreen()
&& mods.size().is_set()
&& node->get_visible_area().size != mods.size().value())
{
mods.size().consume();
}
tools.modify_window(window, mods);
break;
}