diff --git a/contents/code/tiling.js b/contents/code/tiling.js index 8825258..0542423 100644 --- a/contents/code/tiling.js +++ b/contents/code/tiling.js @@ -94,10 +94,10 @@ var resizeAndMove = function(size_dividend, size_multiple, pos_dividend, pos_ind geo.height = workGeo.height; // horizontal position (from left edge) - geo.x = (workGeo.width / pos_dividend) * pos_index; + geo.x = Math.floor((workGeo.width / pos_dividend) * pos_index); // width - geo.width = (workGeo.width / size_dividend) * size_multiple; + geo.width = Math.floor((workGeo.width / size_dividend) * size_multiple); // HACK: unset "maximized" since kwin doesn't do it when you resize an already-maximized window with .geometry activeClient.setMaximize(false, false); diff --git a/metadata.desktop b/metadata.desktop index 6a4122d..4165fdd 100644 --- a/metadata.desktop +++ b/metadata.desktop @@ -10,7 +10,7 @@ X-KDE-PluginInfo-Author=Zach Himsel X-KDE-PluginInfo-Name=Ultrawide-Tiling X-KDE-PluginKeyword=Ultrawide-Tiling X-KDE-ParentComponents=Ultrawide-Tiling -X-KDE-PluginInfo-Version=1.0.1 +X-KDE-PluginInfo-Version=1.0.2 X-KDE-PluginInfo-Depends= X-KDE-PluginInfo-License=GPL