opt: change drag resize request limit to 120hz for floating window

This commit is contained in:
DreamMaoMao 2026-02-02 14:47:13 +08:00
parent bcee63fa76
commit eb0607501d
3 changed files with 6 additions and 5 deletions

View file

@ -4143,7 +4143,7 @@ void motionnotify(uint32_t time, struct wlr_input_device *device, double dx,
if (grabc->isfloating) {
grabc->iscustomsize = 1;
if (last_apply_drap_time == 0 ||
time - last_apply_drap_time > drag_refresh_interval) {
time - last_apply_drap_time > drag_floating_refresh_interval) {
resize_floating_window(grabc);
last_apply_drap_time = time;
}