mirror of
https://github.com/miracle-wm-org/miracle-wm.git
synced 2024-11-29 16:39:40 +03:00
(#97) bugfix: preventing some windows (e.g. emacs) from deciding on too small of size for their tile (#184)
This commit is contained in:
parent
ec1d3bdebc
commit
458b5cc4fd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user