It seems that switching to another workspace and then back fixes the issue, making gedit appear properly in alt-tab.
It seems that switching to another workspace and then back fixes the issue, making gedit appear properly in alt-tab.