Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #385 #391

Merged
merged 1 commit into from
Mar 15, 2023
Merged

Fix #385 #391

merged 1 commit into from
Mar 15, 2023

Conversation

Aki-7
Copy link
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