I don't think modifying windows is the way to go imo, this is a issue with GW2 and it needs sorting, I advise we post on the bug report I posted to gain the right attention for it to be fixed: https://en-forum.guildwars2.com/discussion/64138/bug-report-see-this-forum-post-been-going-on-for-a-long-time#latest