(#180) bugfix: no longer crashing due to shell elements on startup

This commit is contained in:
Matthew Kosarek 2024-06-25 13:31:05 -04:00
parent 362547bd89
commit 68bd9c8460

View File

@ -35,7 +35,8 @@ namespace window_helpers
WindowType get_ideal_type(T const& requested_specification)
{
auto has_exclusive_rect = requested_specification.exclusive_rect().is_set();
if (has_exclusive_rect)
auto is_attached = requested_specification.attached_edges().is_set();
if (has_exclusive_rect || is_attached)
return WindowType::other;
auto t = requested_specification.type();