- get_atom_longs(client_state_atom, XA_ATOM, client, &states, &num_states);
- for (j = 0; j < num_states; j++) {
- if (states[j] == shaded_state) height = 3.0 * scale;
- if (states[j] == skip_pager_state) draw = 0;
- if (states[j] == hidden_state) draw = 0;
+ if (get_atom_longs(client_state_atom, XA_ATOM, client, &states, &num_states) == Success) {
+ for (j = 0; j < num_states; j++) {
+ if (states[j] == shaded_state) height = 3.0 * scale;
+ if (states[j] == skip_pager_state) draw = 0;
+ if (states[j] == hidden_state) draw = 0;
+ }
+ XFree(states);