[SF#838]Fix maximizing windows using task bar, GDK functions not always work.