Skip to content

减小任务栏唤醒区域。 - #1684

Open
gspsp wants to merge 3 commits into
linuxdeepin:masterfrom
gspsp:master
Open

减小任务栏唤醒区域。#1684
gspsp wants to merge 3 commits into
linuxdeepin:masterfrom
gspsp:master

Conversation

@gspsp

@gspsp gspsp commented Aug 2, 2026

Copy link
Copy Markdown

任务栏设置:屏幕下方,一直隐藏。

当鼠标滑到屏幕靠下 一个区域 的时候,任务栏就会出现。

这逻辑没有问题,但是如果我要点击或者操作的地方在 这个区域 ,就会很难受。

鼠标下滑出屏幕,或者鼠标贴底 一条线 ,任务栏才会触发显示。换成这样的逻辑会不会好一些?

(鼠标贴底,其实操作上是没有难度,鼠标往下盲移就行了。)

换个说法就是,建议 把这个鼠标移动到 区域 触发,改成移动到 底边 触发,提高使用体验。

Summary by Sourcery

Enhancements:

  • Adjust Wayland and X11 dock helpers so the auto-hide wake region is constrained to a minimal 1‑pixel strip along the screen edge, improving usability for bottom-aligned docks.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry @gspsp, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@sourcery-ai

sourcery-ai Bot commented Aug 2, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Reduces the dock/taskbar wake-up trigger area from a small strip to a 1-pixel edge, so the dock only appears when the mouse actually hits the screen edge instead of a thicker region near it.

File-Level Changes

Change Details Files
Shrink the Wayland dock wake-up area thickness to a 1-pixel edge strip.
  • Initialize the TreeLandDockWakeUpArea window with a 1x1 size instead of 15x15.
  • Ensure updateDockWakeArea resets the wake-up window size to 1x1 after anchor updates.
  • Adjust resizeEvent so vertical-edge docks use width 1 and full screen height, and horizontal-edge docks use height 1 and full screen width.
panels/dock/waylanddockhelper.cpp
Shrink the X11 dock monitor region thickness to a 1-pixel edge strip.
  • Update the monitorSize constant from 15 to 1 so the X11 wake-up region thickness matches the new edge-only behavior.
panels/dock/x11dockhelper.cpp

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@gspsp

gspsp commented Aug 2, 2026

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA.

deepin-bot Bot added a commit to linuxdeepin/cla that referenced this pull request Aug 2, 2026
@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: gspsp

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

Details 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

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.

2 participants