Skip to content

Commit b4cce3a

Browse files
committed
window-list: Only call output enter if there was already a parent set
1 parent aba3201 commit b4cce3a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/panel/widgets/window-list/toplevel.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,10 @@ static void handle_toplevel_parent(void *data, toplevel_t handle, toplevel_t par
543543
auto impl = static_cast<WayfireToplevel::impl*> (data);
544544
if (!parent)
545545
{
546-
impl->handle_output_enter(impl->window_list->output->wo);
546+
if (impl->get_parent())
547+
{
548+
impl->handle_output_enter(impl->window_list->output->wo);
549+
}
547550
remove_child_from_parent(impl, handle);
548551
impl->set_parent(parent);
549552
return;

0 commit comments

Comments
 (0)