Handle locked screen as overlapping window.
This commit is contained in:
parent
db1df1b4bd
commit
14c67cf724
3 changed files with 7 additions and 0 deletions
|
|
@ -36,6 +36,10 @@ void Integration::textActionsUpdated() {
|
||||||
void Integration::activationFromTopPanel() {
|
void Integration::activationFromTopPanel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Integration::screenIsLocked() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
QString Integration::timeFormat() {
|
QString Integration::timeFormat() {
|
||||||
return u"hh:mm"_q;
|
return u"hh:mm"_q;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ public:
|
||||||
virtual void textActionsUpdated();
|
virtual void textActionsUpdated();
|
||||||
virtual void activationFromTopPanel();
|
virtual void activationFromTopPanel();
|
||||||
|
|
||||||
|
[[nodiscard]] virtual bool screenIsLocked();
|
||||||
[[nodiscard]] virtual QString timeFormat();
|
[[nodiscard]] virtual QString timeFormat();
|
||||||
|
|
||||||
[[nodiscard]] virtual std::shared_ptr<ClickHandler> createLinkHandler(
|
[[nodiscard]] virtual std::shared_ptr<ClickHandler> createLinkHandler(
|
||||||
|
|
|
||||||
|
|
@ -189,6 +189,8 @@ bool IsContentVisible(
|
||||||
const auto activeOrNotOverlapped = [&] {
|
const auto activeOrNotOverlapped = [&] {
|
||||||
if (const auto active = widget->isActiveWindow()) {
|
if (const auto active = widget->isActiveWindow()) {
|
||||||
return active;
|
return active;
|
||||||
|
} else if (Integration::Instance().screenIsLocked()) {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto mappedRect = QHighDpi::toNativePixels(
|
const auto mappedRect = QHighDpi::toNativePixels(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue