- /* make sure the serial isn't already being ignored */
- for (i = 0; ignore_enter_serials[i] != 0 && !ignored; ++i) {
- if (ignore_enter_serials[i] == e->xany.serial)
- ignored = TRUE;
- }
-
- if (!ignored) {
- /* found an enter for that leave, ignore it if it's going to
- another window */
- win = g_hash_table_lookup(window_map, &e->xany.window);
- if (win && WINDOW_IS_CLIENT(win))
- ++ignore_enter_focus;
- }
-
- /* add it to the ignored list if there is room */
- if (i < NUM_IGNORE_SERIALS) {
- ignore_enter_serials[i] = e->xany.serial;
- ignore_enter_serials[i+1] = 0;
- }
+ /* found an enter for that leave, ignore it if it's going to
+ another window */
+ win = g_hash_table_lookup(window_map, &e->xany.window);
+ if (win && WINDOW_IS_CLIENT(win))
+ ++ignore_enter_focus;