Skip to content

Commit

Permalink
#286 - ActiveWindowName widget does not always truncate (#287)
Browse files Browse the repository at this point in the history
* #286 calling the version of set_text that truncates to our character limit

* #286 should be a &str not a String or impl Into<String>
  • Loading branch information
sminez committed Jan 3, 2024
1 parent ba6adec commit 7b7ed75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/penrose_ui/src/bar/widgets/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl<X: XConn> Widget<X> for ActiveWindowName {
XEvent::PropertyNotify(PropertyEvent { id, atom, .. })
if id == focused && name_props.contains(&atom.as_ref()) =>
{
self.inner.set_text(x.window_title(*id)?)
self.set_text(&x.window_title(*id)?)
}

_ => (),
Expand Down

0 comments on commit 7b7ed75

Please sign in to comment.