Explorar o código

Make moving and resizing windows more smooth

This will fix lagging when moving and resizing windows on higher refresh rate monitors
sioodmy %!s(int64=3) %!d(string=hai) anos
pai
achega
69d4fe763c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      chadwm/dwm.c

+ 1 - 1
chadwm/dwm.c

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