Fix instant QMI call hangup, eliminate post-call dialer/callscreen popups and desktop clock flicker

This commit is contained in:
Luxferre committed 2026-11-05 09:51:53 +02:00
1 parent 1d71bc81d8
commit c9c870c3bb
27 files changed
+867 -308

No files matched your search

+6 -3
View File
@@ -1046,8 +1046,8 @@ int runContactsApp(int argc, char** argv) {
switch (actIdx) {
case 0: // Call Contact
writeSoftkeySuppress(nowMs() + 350);
hideWindow(true);
placePhoneCall(c.number);
hideWindow(false);
break;
case 1: // Send SMS
writeSoftkeySuppress(nowMs() + 350);
@@ -1304,8 +1304,8 @@ int runContactsApp(int argc, char** argv) {
if (selected >= 0 && selected < static_cast<int>(filtered.size())) {
std::string target = filtered[selected].number;
writeSoftkeySuppress(nowMs() + 350);
hideWindow(true);
placePhoneCall(target);
hideWindow(false);
}
break;
case XK_Return:
@@ -1323,8 +1323,8 @@ int runContactsApp(int argc, char** argv) {
selected < static_cast<int>(filtered.size())) {
std::string target = filtered[selected].number;
writeSoftkeySuppress(nowMs() + 350);
hideWindow(true);
placePhoneCall(target);
hideWindow(false);
}
break;
}
@@ -1769,6 +1769,9 @@ int contacts_on_idle_key(const DwmHostApi* host, KeySym keysym,
if (!host || !host->is_idle_desktop || !host->is_idle_desktop() || state != 0) {
return 0;
}
if (isCallActiveOrRingingFast() || isAnotherPluginActive("contacts")) {
return 0;
}
if (keysym == XF86XK_Back || keysym == XF86XK_KbdLcdMenu2 || keycode == 166) {
if (host->spawn_plugin) {
host->spawn_plugin("contacts", nullptr);