Skip to content

fix a whole bunch of output problems - #49

Merged
Squibid merged 14 commits into
devfrom
output
May 17, 2026
Merged

fix a whole bunch of output problems#49
Squibid merged 14 commits into
devfrom
output

Conversation

@Squibid

@Squibid Squibid commented May 16, 2026

Copy link
Copy Markdown
Member

superseeds #46
closes #33

Squibid added 13 commits April 23, 2026 20:59
- The output already has a tree in the scene_output it doesn't need
  another one.
- Outputs aren't focused by default on connection anymore, that is now
  controlled by the server.
- Output configurations (used in programs such as wlr-randr) are now
  configured in the root
- Layers are now cropped to their outputs size
- arranging the layers of an output won't affect other layers in other
  outputs
@Squibid
Squibid requested a review from EggbertFluffle May 16, 2026 22:04

@EggbertFluffle EggbertFluffle left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bangerrrrrrrrr

Comment thread src/Output.zig
else => continue,
};

if (layer_surface.output.wlr_output != self.wlr_output) continue;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this mean that a layer surface is currently a child of the wrong output and this is an incorrect state? Perhaps fix it or error?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, I think we need to do some testing to figure out what would be best. I'll add a todo to the codebase.

Comment thread src/Seat.zig
}

pub fn focusOutput(self: *Seat, output: *Output) void {
if (self.focused_output) |prev_output| {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like not having to set the state of individual outputs, good stuff

Comment thread src/Server.zig
return;
};

// TODO: Allow user to define output positions

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps to do this we could use an autocommand that simply returns the output's position? Just a though, no need to do this to merge

@Squibid
Squibid merged commit c0fa81a into dev May 17, 2026
@Squibid
Squibid deleted the output branch May 17, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Output transform setting (and other output state)

2 participants