Ok, I think what is happening here is that from terminal_window_composited_changed_cb, it is passing an invalid GdkWindow to terminal_util_x11_set_net_wm_desktop. It seems to be passing the one that was just destroyed when unrealizing the TerminalWindow.
Ok, I think what is happening here is that from terminal_ window_ composited_ changed_ cb, it is passing an invalid GdkWindow to terminal_ util_x11_ set_net_ wm_desktop. It seems to be passing the one that was just destroyed when unrealizing the TerminalWindow.
I will test a patch for this in a minute