Kaynağa Gözat

Fix client covering new bar at reload

Martin Duquesnoy 12 yıl önce
ebeveyn
işleme
00c6cfebd2
2 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 1 1
      src/layout.c
  2. 4 0
      src/wmfs.c

+ 1 - 1
src/layout.c

@@ -557,7 +557,7 @@ uicb_layout_hmirror(Uicb cmd)
      layout_save_set(W->screen->seltag);
 }
 
-#define LAYOUT_INTEGRATE_DIR(D)\
+#define LAYOUT_INTEGRATE_DIR(D)                                         \
      void uicb_layout_integrate_##D(Uicb cmd)                           \
      {                                                                  \
           (void)cmd;                                                    \

+ 4 - 0
src/wmfs.c

@@ -23,6 +23,7 @@
 #include "config.h"
 #include "client.h"
 #include "fifo.h"
+#include "layout.h"
 
 int
 wmfs_error_handler(Display *d, XErrorEvent *event)
@@ -344,6 +345,9 @@ wmfs_scan(void)
      if((fc = client_gb_win(focus)) && fc != W->client)
           client_focus(fc);
 
+     SLIST_FOREACH(c, &W->h.client, next)
+          layout_fix_hole(c);
+
      W->flags &= ~WMFS_SCAN;
 
      if(tret)