Skip to content

[BUG] Issue with window resize #1629

@gatekeeper8

Description

@gatekeeper8

Describe the bug

Hi all,
That was my first steps with ML4W, I found a small bug, to be fixed relatively fast.
In keybindings configuration default.lua there is lack of relative = true directive, making window resize unusable with message ?.? invalid size.
Original :
--hl.bind(mainMod .. " + SHIFT + right", hl.dsp.window.resize({ x = 100, y = 0 }), { description = "Increase window width with keyboard" })
Fixed:
hl.bind(mainMod .. " + SHIFT + right", hl.dsp.window.resize({ x = 100, y = 0, relative = true }), { description = "Increase window width with keyboard" })

Kind regards
Sl.

Steps to reproduce

  1. Run terminal in window
  2. Press Shift + Super + arrows (left, right etc)
  3. Message will appear - window won't be resized

Expected behavior

Window to be resized

Screenshots

No response

Distribution

Arch Linux

If Other, specify

No response

Additional context

Thanks for your work, ML4W looks stunning

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions