Procházet zdrojové kódy

Make moving and resizing windows more smooth

This will fix lagging when moving and resizing windows on higher refresh rate monitors
sioodmy před 3 roky
rodič
revize
69d4fe763c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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) {