layout on each monitor

This commit is contained in:
Squibid 2025-12-19 23:45:48 -05:00
parent b03738534b
commit 7f847ee468
Signed by: squibid
GPG key ID: BECE5684D3C4005D
2 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ pub fn build(b: *std.Build) void {
const xkbcommon = b.dependency("xkbcommon", .{}).module("xkbcommon"); const xkbcommon = b.dependency("xkbcommon", .{}).module("xkbcommon");
const pixman = b.dependency("pixman", .{}).module("pixman"); const pixman = b.dependency("pixman", .{}).module("pixman");
const wlroots = b.dependency("wlroots", .{}).module("wlroots"); const wlroots = b.dependency("wlroots", .{}).module("wlroots");
const zlua = b.dependency("zlua", .{ .lang = .luajit }).module("zlua"); const zlua = b.dependency("zlua", .{ .lang = .lua51 }).module("zlua");
const clap = b.dependency("clap", .{}).module("clap"); const clap = b.dependency("clap", .{}).module("clap");
wlroots.addImport("wayland", wayland); wlroots.addImport("wayland", wayland);

View file

@ -3,13 +3,13 @@ mez.layout_manager.new_layout({
callback = function(output) callback = function(output)
local mw, my, ty; local mw, my, ty;
local mon = mez.output.get_resolution(0) local mon = mez.output.get_resolution(output)
local nmaster = 1 local nmaster = 1
local mfact = 0.5 local mfact = 0.5
local view_ids = {} local view_ids = {}
local ok, ids = pcall(mez.output.get_all_views, 0) local ok, ids = pcall(mez.output.get_all_views, output)
if not ok or ids == nil then if not ok or ids == nil then
print("nillllll") print("nillllll")
return return