bar top always

This commit is contained in:
vaxerski 2021-12-25 12:11:19 +01:00
parent 9460139071
commit 7e57a47b5d

View file

@ -1773,12 +1773,20 @@ void CWindowManager::setAllFloatingWindowsTop() {
window.bringTopRecursiveTransients(); window.bringTopRecursiveTransients();
} }
} }
// set the bar topper jic
Values[0] = XCB_STACK_MODE_ABOVE;
xcb_configure_window(g_pWindowManager->DisplayConnection, barWindowID, XCB_CONFIG_WINDOW_STACK_MODE, Values);
} }
void CWindowManager::setAWindowTop(xcb_window_t window) { void CWindowManager::setAWindowTop(xcb_window_t window) {
Values[0] = XCB_STACK_MODE_ABOVE; Values[0] = XCB_STACK_MODE_ABOVE;
const auto COOKIE = xcb_configure_window(g_pWindowManager->DisplayConnection, window, XCB_CONFIG_WINDOW_STACK_MODE, Values); const auto COOKIE = xcb_configure_window(g_pWindowManager->DisplayConnection, window, XCB_CONFIG_WINDOW_STACK_MODE, Values);
Events::ignoredEvents.push_back(COOKIE.sequence); Events::ignoredEvents.push_back(COOKIE.sequence);
// set the bar topper jic
Values[0] = XCB_STACK_MODE_ABOVE;
xcb_configure_window(g_pWindowManager->DisplayConnection, barWindowID, XCB_CONFIG_WINDOW_STACK_MODE, Values);
} }
bool CWindowManager::shouldBeFloatedOnInit(int64_t window) { bool CWindowManager::shouldBeFloatedOnInit(int64_t window) {