Skip to content

Fix Linux build with Wayland enabled + Some changes#237

Open
st0rmbtw wants to merge 12 commits into
LukasBanana:masterfrom
st0rmbtw:fixes_for_wayland
Open

Fix Linux build with Wayland enabled + Some changes#237
st0rmbtw wants to merge 12 commits into
LukasBanana:masterfrom
st0rmbtw:fixes_for_wayland

Conversation

@st0rmbtw

@st0rmbtw st0rmbtw commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread sources/Platform/Linux/Wayland/LinuxWaylandState.cpp Outdated
Comment thread sources/Platform/Linux/Wayland/LinuxWaylandState.cpp Outdated
@LukasBanana LukasBanana self-assigned this Jun 10, 2026
@st0rmbtw st0rmbtw requested a review from LukasBanana June 17, 2026 14:51
bool LinuxDisplayWayland::IsPrimary() const
{
return (this == LinuxWaylandState::GetDisplayList()[0]);
return (this == LinuxWaylandState::GetDisplayList()[0].get());

@st0rmbtw st0rmbtw Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Would it be better if we identified the display by its id (data_.name) instead of by the pointer?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I'm not familiar with Wayland. Gemini suggests Wayland leaves the concept of a primary display up to the compositors and that a heuristic might be necessary like checking the position being at (0, 0). What name would you be looking for to detect the primary display?

@LukasBanana LukasBanana left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Looks good. I'll merge if you can please add a comment to the empty function body.

}

void LinuxDisplay::ClearCache()
{

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Can you please add a comment to empty functions that says "dummy" or an explanation why it's empty. This makes it clear they are empty on purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants