瀏覽代碼

Make moving and resizing windows more smooth

This will fix lagging when moving and resizing windows on higher refresh rate monitors
sioodmy 3 年之前
父節點
當前提交
69d4fe763c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      chadwm/dwm.c

+ 1 - 1
chadwm/dwm.c

@@ -1172,7 +1172,7 @@ void dragcfact(const Arg *arg) {
       handler[ev.type](&ev);
       handler[ev.type](&ev);
       break;
       break;
     case MotionNotify:
     case MotionNotify:
-      if ((ev.xmotion.time - lasttime) <= (1000 / 60))
+      if ((ev.xmotion.time - lasttime) <= (1000 / 120))
         continue;
         continue;
       lasttime = ev.xmotion.time;
       lasttime = ev.xmotion.time;
       if (prev_x == -999999) {
       if (prev_x == -999999) {