Skip to content

Commit 872ec58

Browse files
committed
panel: window-list: Fix random crashes
This fixes the case where some actions cause the panel to die, with the Gdk wayland error message "Error reading events from display: Invalid argument".
1 parent d535efa commit 872ec58

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ static void handle_manager_toplevel(void *data, zwlr_foreign_toplevel_manager_v1
1414
}
1515

1616
static void handle_manager_finished(void *data, zwlr_foreign_toplevel_manager_v1 *manager)
17-
{}
17+
{
18+
zwlr_foreign_toplevel_manager_v1_stop(manager);
19+
zwlr_foreign_toplevel_manager_v1_destroy(manager);
20+
}
1821

1922
zwlr_foreign_toplevel_manager_v1_listener toplevel_manager_v1_impl = {
2023
.toplevel = handle_manager_toplevel,

0 commit comments

Comments
 (0)