mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-12 20:25:59 +01:00
Revert "Merge pull request #499 from yavko/fix-active-window-json-bools"
This reverts commit5aed6f1bc7
, reversing changes made to6f137938da
.
This commit is contained in:
parent
b60b52c5cf
commit
ab6a62f0fd
1 changed files with 4 additions and 4 deletions
|
@ -169,23 +169,23 @@ R"#({
|
||||||
"id": %i,
|
"id": %i,
|
||||||
"name": "%s"
|
"name": "%s"
|
||||||
},
|
},
|
||||||
"floating": %s,
|
"floating": %i,
|
||||||
"monitor": %i,
|
"monitor": %i,
|
||||||
"class": "%s",
|
"class": "%s",
|
||||||
"title": "%s",
|
"title": "%s",
|
||||||
"pid": %i,
|
"pid": %i,
|
||||||
"xwayland": %s
|
"xwayland": %i
|
||||||
})#",
|
})#",
|
||||||
PWINDOW,
|
PWINDOW,
|
||||||
(int)PWINDOW->m_vRealPosition.vec().x, (int)PWINDOW->m_vRealPosition.vec().y,
|
(int)PWINDOW->m_vRealPosition.vec().x, (int)PWINDOW->m_vRealPosition.vec().y,
|
||||||
(int)PWINDOW->m_vRealSize.vec().x, (int)PWINDOW->m_vRealSize.vec().y,
|
(int)PWINDOW->m_vRealSize.vec().x, (int)PWINDOW->m_vRealSize.vec().y,
|
||||||
PWINDOW->m_iWorkspaceID, escapeJSONStrings(PWINDOW->m_iWorkspaceID == -1 ? "" : g_pCompositor->getWorkspaceByID(PWINDOW->m_iWorkspaceID)->m_szName).c_str(),
|
PWINDOW->m_iWorkspaceID, escapeJSONStrings(PWINDOW->m_iWorkspaceID == -1 ? "" : g_pCompositor->getWorkspaceByID(PWINDOW->m_iWorkspaceID)->m_szName).c_str(),
|
||||||
((int)w->m_bIsFloating == 1 ? "true" : "false"),
|
(int)PWINDOW->m_bIsFloating,
|
||||||
PWINDOW->m_iMonitorID,
|
PWINDOW->m_iMonitorID,
|
||||||
escapeJSONStrings(g_pXWaylandManager->getAppIDClass(PWINDOW)).c_str(),
|
escapeJSONStrings(g_pXWaylandManager->getAppIDClass(PWINDOW)).c_str(),
|
||||||
escapeJSONStrings(g_pXWaylandManager->getTitle(PWINDOW)).c_str(),
|
escapeJSONStrings(g_pXWaylandManager->getTitle(PWINDOW)).c_str(),
|
||||||
PWINDOW->getPID(),
|
PWINDOW->getPID(),
|
||||||
((int)w->m_bIsX11 == 1 ? "true" : "false")
|
(int)PWINDOW->m_bIsX11
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return getFormat("Window %x -> %s:\n\tat: %i,%i\n\tsize: %i,%i\n\tworkspace: %i (%s)\n\tfloating: %i\n\tmonitor: %i\n\tclass: %s\n\ttitle: %s\n\tpid: %i\n\txwayland: %i\n\n",
|
return getFormat("Window %x -> %s:\n\tat: %i,%i\n\tsize: %i,%i\n\tworkspace: %i (%s)\n\tfloating: %i\n\tmonitor: %i\n\tclass: %s\n\ttitle: %s\n\tpid: %i\n\txwayland: %i\n\n",
|
||||||
|
|
Loading…
Reference in a new issue