mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-14 03:25:45 -07:00
foreign-toplevel: bypass no activate focus checks
ref #5939 those are used by focus switchers so they should bypass stuff like focus_on_activate = false
This commit is contained in:
@@ -1274,7 +1274,7 @@ std::unordered_map<std::string, std::string> CWindow::getEnv() {
|
||||
return results;
|
||||
}
|
||||
|
||||
void CWindow::activate() {
|
||||
void CWindow::activate(bool force) {
|
||||
static auto PFOCUSONACTIVATE = CConfigValue<Hyprlang::INT>("misc:focus_on_activate");
|
||||
|
||||
g_pEventManager->postEvent(SHyprIPCEvent{"urgent", std::format("{:x}", (uintptr_t)this)});
|
||||
@@ -1282,7 +1282,7 @@ void CWindow::activate() {
|
||||
|
||||
m_bIsUrgent = true;
|
||||
|
||||
if (!*PFOCUSONACTIVATE || (m_eSuppressedEvents & SUPPRESS_ACTIVATE_FOCUSONLY) || (m_eSuppressedEvents & SUPPRESS_ACTIVATE))
|
||||
if (!force && (!*PFOCUSONACTIVATE || (m_eSuppressedEvents & SUPPRESS_ACTIVATE_FOCUSONLY) || (m_eSuppressedEvents & SUPPRESS_ACTIVATE)))
|
||||
return;
|
||||
|
||||
if (m_bIsFloating)
|
||||
|
Reference in New Issue
Block a user