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: [wayland] Window size exceeds the screen after setting the zoom. #398

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

LiHua000
Copy link

窗口大小超过屏幕时,x11下会自动最大化,wayland因协议设计,不会自动最大化,导致大小超出屏幕。 做规避,当窗口大小超过屏幕时,设置为屏幕大小。

Log: 修复bug

Bug: https://pms.uniontech.com/bug-view-305171.html

When the window size exceeds the screen, it will automatically maximize under X11 due to the protocol design. However, under Wayland, it will not maximize automatically, leading to the size exceeding the screen. As a workaround, when the window size exceeds the screen, set it to the screen size.

Log: fix bug

Bug: https://pms.uniontech.com/bug-view-305171.html
@LiHua000 LiHua000 changed the title fix: [wayland] 设置缩放后,窗口大小超出屏幕 fix: [wayland] Window size exceeds the screen after setting the zoom. Feb 27, 2025
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: LiHua000, max-lvs

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@LiHua000
Copy link
Author

/force merge

@max-lvs max-lvs merged commit 3711c6d into linuxdeepin:release/eagle Feb 27, 2025
15 checks passed
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.

3 participants