a few changes here...

- foot no longer resizes by col,row because we've set every client to
  tiling
- stop using a seperate enum for tagging in SceneNodeData
- use enabling instead of positioning views out of the visible area
This commit is contained in:
Squibid 2025-12-18 22:05:31 -05:00
parent ff196693cd
commit 9173cab6b9
Signed by: squibid
GPG key ID: BECE5684D3C4005D
4 changed files with 53 additions and 14 deletions

View file

@ -150,6 +150,15 @@ fn handleMap(listener: *wl.Listener(void)) void {
server.events.exec("ViewMapPre", .{view.id});
// we're gonna tell the client that it's tiled so it doesn't try anything
// stupid
_ = view.xdg_toplevel.setTiled(.{
.top = true,
.bottom = true,
.left = true,
.right = true,
});
view.xdg_toplevel.events.request_fullscreen.add(&view.request_fullscreen);
view.xdg_toplevel.events.request_move.add(&view.request_move);
view.xdg_toplevel.events.request_resize.add(&view.request_resize);