Close from commit: 6d4d8eca54db03899b81072c0ddc3cf3bb2be34b by Claes Nästén
If you disable fullscreen detect this shouldn't happen, I've created a patch and sent it to IOError for pushing.
Did a quick check with gnome-terminal and right after the set of fullscreen has been sent, another message is sent for unsetting the state.