mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-05-11 05:09:45 +02:00
fix(wm): ensure stackbar tab clicks trigger
This commit fixes a small regression that prevented events emitted from clicks on stackbar tabs from being handled.
This commit is contained in:
@@ -91,7 +91,14 @@ impl WindowManager {
|
|||||||
|
|
||||||
// All event handlers below this point should only be processed if the event is
|
// All event handlers below this point should only be processed if the event is
|
||||||
// related to a window that should be managed by the WindowManager.
|
// related to a window that should be managed by the WindowManager.
|
||||||
if !should_manage {
|
if !should_manage
|
||||||
|
&& !matches!(
|
||||||
|
event,
|
||||||
|
WindowManagerEvent::DisplayChange(_)
|
||||||
|
| WindowManagerEvent::ForceUpdate(_)
|
||||||
|
| WindowManagerEvent::FocusChange(_, _)
|
||||||
|
)
|
||||||
|
{
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -372,10 +372,6 @@ impl Window {
|
|||||||
|
|
||||||
#[tracing::instrument(fields(exe, title))]
|
#[tracing::instrument(fields(exe, title))]
|
||||||
pub fn should_manage(self, event: Option<WindowManagerEvent>) -> Result<bool> {
|
pub fn should_manage(self, event: Option<WindowManagerEvent>) -> Result<bool> {
|
||||||
if let Some(WindowManagerEvent::DisplayChange(_)) = event {
|
|
||||||
return Ok(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[allow(clippy::question_mark)]
|
#[allow(clippy::question_mark)]
|
||||||
if self.title().is_err() {
|
if self.title().is_err() {
|
||||||
return Ok(false);
|
return Ok(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user