fix: Add BypassWindowManagerHint to toolbar window flags#753
Merged
Conversation
acc9e2f to
405c21e
Compare
Added Qt::BypassWindowManagerHint flag to all window mode configurations (Wayland, V23 system, and default) to ensure proper window management behavior and prevent potential window manager interference with toolbar positioning and display. Log: Fix toolbar window management issues Bug: https://pms.uniontech.com/bug-view-338255.html
405c21e to
38a5a97
Compare
deepin pr auto review我来对这段代码的修改进行审查:
改进建议: ToolBarWidget::ToolBarWidget(DWidget *parent): DBlurEffectWidget(parent)
{
// 统一设置窗口标志
Qt::WindowFlags flags = Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | Qt::Tool;
// 只在特定环境下才绕过窗口管理器
#ifdef NEED_BYPASS_WM
flags |= Qt::BypassWindowManagerHint;
#endif
setWindowFlags(flags);
qCDebug(dsrApp) << "Window flags set for default mode.";
this->setRadius(30);
this->setBlurEnabled(true);这样的改进:
建议在实际使用时,仔细评估是否真的需要使用 Qt::BypassWindowManagerHint,因为它可能会带来一些不可预期的行为。 |
lzwind
approved these changes
Nov 11, 2025
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: add-uos, lzwind The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Contributor
Author
|
/merge |
Contributor
|
This pr cannot be merged! (status: unstable) |
Contributor
Author
|
/forcemerge |
Contributor
|
This pr force merged! (status: unstable) |
e8d678b
into
linuxdeepin:develop/snipe
8 of 9 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added Qt::BypassWindowManagerHint flag to all window mode configurations (Wayland, V23 system, and default) to ensure proper window management behavior and prevent potential window manager interference with toolbar positioning and display.
Log: Fix toolbar window management issues
Bug: https://pms.uniontech.com/bug-view-338255.html