From 51cccecaeb3bb1e79963538a227be4c8a30c4a7d Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Thu, 23 Apr 2009 19:26:52 +0200 Subject: [PATCH] Scan: Update client attributes after client_manage and arrange all screen at the end. --- src/ewmh.c | 2 -- src/structs.h | 2 -- src/wmfs.c | 6 ++++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/ewmh.c b/src/ewmh.c index 2b45677..87f5fe4 100644 --- a/src/ewmh.c +++ b/src/ewmh.c @@ -64,8 +64,6 @@ ewmh_init_hints(void) net_atom[net_wm_window_type_dialog] = ATOM("_NET_WM_WINDOW_TYPE_DIALOG"); net_atom[net_wm_icon] = ATOM("_NET_WM_ICON"); net_atom[net_wm_state] = ATOM("_NET_WM_STATE"); - net_atom[net_wm_state_sticky] = ATOM("_NET_WM_STATE_STICKY"); - net_atom[net_wm_state_skip_taskbar] = ATOM("_NET_WM_STATE_SKIP_TASKBAR"); net_atom[net_wm_state_fullscreen] = ATOM("_NET_WM_STATE_FULLSCREEN"); net_atom[net_wm_state_demands_attention] = ATOM("_NET_WM_STATE_DEMANDS_ATTENTION"); net_atom[utf8_string] = ATOM("UTF8_STRING"); diff --git a/src/structs.h b/src/structs.h index 310383f..1e9d557 100644 --- a/src/structs.h +++ b/src/structs.h @@ -75,8 +75,6 @@ enum net_wm_desktop, net_wm_icon, net_wm_state, - net_wm_state_sticky, - net_wm_state_skip_taskbar, net_wm_state_fullscreen, net_wm_state_demands_attention, utf8_string, diff --git a/src/wmfs.c b/src/wmfs.c index f1cc565..78526f7 100644 --- a/src/wmfs.c +++ b/src/wmfs.c @@ -225,11 +225,13 @@ scan(void) if(screen != -1) c->screen = screen; - arrange(c->screen); + client_update_attributes(c); } + for(i = 0; i < screen_count(); ++i) + arrange(i); + XFree(w); - arrange(screen_get_sel()); return; }