fix: allow floating point values for swww_transition_duration

This commit is contained in:
Philipp Heuer 2024-08-11 18:30:04 +02:00
parent a950e54cca
commit 42ab924113
No known key found for this signature in database
GPG Key ID: 976F845BDB086EEB

View File

@ -136,7 +136,7 @@ class Config:
self.swww_transition_angle = 0
if 0 > int(self.swww_transition_step) > 255:
self.swww_transition_step = 90
if 0 > int(self.swww_transition_duration):
if 0 > float(self.swww_transition_duration):
self.swww_transition_duration = 2
if 0 > int(self.swww_transition_fps):
self.swww_transition_fps = 60