mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-07 19:49:53 -05:00
layout on each monitor
This commit is contained in:
parent
b03738534b
commit
7f847ee468
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue