瀏覽代碼

updated configurenotify

Anselm R Garbe 17 年之前
父節點
當前提交
6877205e9d
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      dwm.c

+ 4 - 1
dwm.c

@@ -423,8 +423,11 @@ void
 configurenotify(XEvent *e) {
 	XConfigureEvent *ev = &e->xconfigure;
 
-	if(ev->window == root && (ev->width != sw || ev->height != sh))
+	if(ev->window == root && (ev->width != sw || ev->height != sh)) {
+		sw = ev->width;
+		sh = ev->height;
 		setgeom(NULL);
+	}
 }
 
 void