mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Dark mode - don't steal focus when hint window showed
This commit is contained in:
parent
d9d1279f06
commit
7805e483b3
1 changed files with 4 additions and 1 deletions
|
|
@ -409,6 +409,7 @@ end;
|
|||
procedure ScreenFormEvent(Self, Sender: TObject; Form: TCustomForm);
|
||||
var
|
||||
Handle: HWND;
|
||||
AWindow: QWidgetH;
|
||||
begin
|
||||
Handle:= GetWindowHandle(Form);
|
||||
AllowDarkModeForWindow(Handle, True);
|
||||
|
|
@ -416,7 +417,9 @@ begin
|
|||
|
||||
if (Form is THintWindow) then
|
||||
begin
|
||||
Windows.SetWindowLong(Handle, GWL_EXSTYLE, Windows.GetWindowLong(Handle, GWL_EXSTYLE) or WS_EX_TOOLWINDOW);
|
||||
AWindow:= QWidget_window(TQtWidget(Form.Handle).GetContainerWidget);
|
||||
QWidget_setWindowFlags(AWindow, QtTool or QtFramelessWindowHint);
|
||||
QWidget_setAttribute(AWindow, QtWA_ShowWithoutActivating);
|
||||
end;
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue