mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 10:43:40 +01:00
Comment-out unused code instead of masking with preprocessor
This commit is contained in:
parent
5ca59bf723
commit
6185efd847
2 changed files with 6 additions and 9 deletions
|
@ -23,7 +23,6 @@ add_library(hy3 SHARED
|
|||
)
|
||||
|
||||
option(HY3_NO_VERSION_CHECK "Disable hyprland version check" FALSE)
|
||||
option(HY3_ENABLE_UNUSED_BLOCKS "Enable the compilation of unused blocks" FALSE)
|
||||
|
||||
if (HY3_NO_VERSION_CHECK)
|
||||
target_compile_definitions(hy3 PRIVATE -DHY3_NO_VERSION_CHECK=TRUE)
|
||||
|
|
|
@ -1333,14 +1333,12 @@ fullscreen:
|
|||
window->m_vRealPosition = monitor->vecPosition;
|
||||
window->m_vRealSize = monitor->vecSize;
|
||||
goto fsupdate;
|
||||
#ifdef HY3_ENABLE_UNUSED_BLOCKS
|
||||
unfullscreen:
|
||||
if (node->data.type != Hy3NodeType::Window) return;
|
||||
window = node->data.as_window;
|
||||
window->m_bIsFullscreen = false;
|
||||
workspace->m_bHasFullscreenWindow = false;
|
||||
goto fsupdate;
|
||||
#endif
|
||||
// unfullscreen:
|
||||
// if (node->data.type != Hy3NodeType::Window) return;
|
||||
// window = node->data.as_window;
|
||||
// window->m_bIsFullscreen = false;
|
||||
// workspace->m_bHasFullscreenWindow = false;
|
||||
// goto fsupdate;
|
||||
fsupdate:
|
||||
g_pCompositor->updateWindowAnimatedDecorationValues(window);
|
||||
g_pXWaylandManager->setWindowSize(window, window->m_vRealSize.goalv());
|
||||
|
|
Loading…
Add table
Reference in a new issue