mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 00:45:58 +01:00
fix warns
This commit is contained in:
parent
1ead6c46f4
commit
31cd104286
2 changed files with 2 additions and 2 deletions
|
@ -970,7 +970,7 @@ void Events::listener_unmanagedSetGeometry(void* owner, void* data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Events::listener_setOverrideRedirect(void* owner, void* data) {
|
void Events::listener_setOverrideRedirect(void* owner, void* data) {
|
||||||
const auto PWINDOW = (CWindow*)owner;
|
// const auto PWINDOW = (CWindow*)owner;
|
||||||
|
|
||||||
//if (!PWINDOW->m_bIsMapped && PWINDOW->m_uSurface.xwayland->mapped) {
|
//if (!PWINDOW->m_bIsMapped && PWINDOW->m_uSurface.xwayland->mapped) {
|
||||||
// Events::listener_mapWindow(PWINDOW, nullptr);
|
// Events::listener_mapWindow(PWINDOW, nullptr);
|
||||||
|
|
|
@ -12,7 +12,7 @@ IHyprLayout* CLayoutManager::getCurrentLayout() {
|
||||||
void CLayoutManager::switchToLayout(std::string layout) {
|
void CLayoutManager::switchToLayout(std::string layout) {
|
||||||
for (size_t i = 0; i < m_vLayouts.size(); ++i) {
|
for (size_t i = 0; i < m_vLayouts.size(); ++i) {
|
||||||
if (m_vLayouts[i].first == layout) {
|
if (m_vLayouts[i].first == layout) {
|
||||||
if (i == m_iCurrentLayoutID)
|
if (i == (size_t)m_iCurrentLayoutID)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
getCurrentLayout()->onDisable();
|
getCurrentLayout()->onDisable();
|
||||||
|
|
Loading…
Reference in a new issue