Implement maximize and restore on netwm linux