only resize output when using wayland backend
surprisingly enough, real hardware complains
This commit is contained in:
parent
b04c91c897
commit
a8f7448245
5
rc.fnl
5
rc.fnl
@ -13,11 +13,14 @@
|
|||||||
)]
|
)]
|
||||||
(socket-repl.start repl-socket-name))
|
(socket-repl.start repl-socket-name))
|
||||||
|
|
||||||
|
(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