tewmh: Be more specific with windows to ignore - glazier - window management experiments
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 1381df75ab1a023b7fd2b8e082a8822dfe3e700f
 (DIR) parent 333b7862f44d8c9ab1f8cb96b4feaabeed4093bc
 (HTM) Author: Willy Goiffon <dev@z3bra.org>
       Date:   Fri, 12 Jun 2020 17:50:48 +0200
       
       ewmh: Be more specific with windows to ignore
       
       Diffstat:
         M ewmh.c                              |       7 ++++---
       
       1 file changed, 4 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/ewmh.c b/ewmh.c
       t@@ -183,9 +183,8 @@ ewmh_clientlist()
                for (i=0, c=0; i<n; i++) {
                        if (ewmh_type(w[i]) != NORMAL) {
                                xcb_change_window_attributes(conn, w[i], XCB_CW_OVERRIDE_REDIRECT, &(int[]){1});
       -                        xcb_flush(conn);
                        }
       -                if (!wm_is_ignored(w[i]))
       +                if (!wm_is_listable(w[i], 0))
                                l[c++] = w[i];
                }
        
       t@@ -295,8 +294,10 @@ main (int argc, char *argv[])
                        case XCB_FOCUS_IN:
                                ewmh_activewindow(((xcb_focus_in_event_t *)ev)->event);
                                break;
       +                case XCB_MAP_NOTIFY:
       +                        if (ewmh_type(((xcb_map_notify_event_t *)ev)->window) == POPUP)
       +                                wm_restack(((xcb_map_notify_event_t *)ev)->window, XCB_STACK_MODE_ABOVE);
                        }
       -
                        free(ev);
                }