Skip to content

Fix #385#391

Merged
Aki-7 merged 1 commit intozwin-project:v0.2.0-devfrom
Aki-7:#385
Mar 15, 2023
Merged

Fix #385#391
Aki-7 merged 1 commit intozwin-project:v0.2.0-devfrom
Aki-7:#385

Conversation

@Aki-7
Copy link
Copy Markdown
Member

@Aki-7 Aki-7 commented Mar 15, 2023

Context

#385

In Xwayland and xdg_output protocol, the positions of clients and outputs in the layout coordinate system are already defined in the 2D space. So we cannot omit the concept that the displays are aligned in the 2D space.

So I permit zn_screen, a zen component, to have a layout position.

Summary

  • Add layout_position member to zn_screen.
  • Use layout coordinate position for wlr_xwayland_surface_configure.

How to check the behavior

Open xeyes in a display and another X app in another display.
When the cursor hovers the X app, you can confirm the the X eyes knows the layout coordinate system from its eye movement.

@Aki-7 Aki-7 requested a review from a team as a code owner March 15, 2023 08:14
@Aki-7 Aki-7 merged commit 9056e3c into zwin-project:v0.2.0-dev Mar 15, 2023
@Aki-7 Aki-7 deleted the #385 branch March 15, 2023 09:47
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.

Use layout coords for the x and y args of wlr_xwayland_surface_configure

1 participant