浏览代码

Merge pull request #67 from sioodmy/main

Make moving and resizing windows more smooth
siduck 3 年之前
父节点
当前提交
4bf34c9f87
共有 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) {