public void minimize (Client client) {
    client.width = client.size_hints == null || 
      client.size_hints.min_width () == 0 ?
      client.width/2 : client.size_hints.min_width ();

    client.height = client.size_hints == null || 
      client.size_hints.min_height () == 0 ?
      client.height/2 : client.size_hints.min_height ();

    client.resize ();
    relocate (client);
  }