only resize output when using wayland backend
surprisingly enough, real hardware complains
This commit is contained in:
parent
7db61a7af0
commit
0e20e4d261
7
rc.fnl
7
rc.fnl
@ -24,10 +24,15 @@
|
|||||||
pixels.height
|
pixels.height
|
||||||
(pixels:get_pixels))))
|
(pixels:get_pixels))))
|
||||||
|
|
||||||
|
|
||||||
|
(fn resize-wayland-backend [output]
|
||||||
|
(when (string.find (output:name) "^WL-")
|
||||||
|
(output:set_mode 360 720 0)))
|
||||||
|
|
||||||
(kiwmi:on
|
(kiwmi:on
|
||||||
"output"
|
"output"
|
||||||
(fn [output]
|
(fn [output]
|
||||||
(output:set_mode 360 720 0)
|
(resize-wayland-backend output)
|
||||||
(let [[width height] (output:size)
|
(let [[width height] (output:size)
|
||||||
r (output:renderer)
|
r (output:renderer)
|
||||||
kill (texture-from-file r "close-window.png")
|
kill (texture-from-file r "close-window.png")
|
||||||
|
Loading…
Reference in New Issue
Block a user