mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 12:51:54 +05:30
feat: fix focused client title
This commit is contained in:
@@ -48,9 +48,9 @@ export const WorkspaceButton = () => {
|
||||
|
||||
export const FocusedClient = () => {
|
||||
const hyprland = AstalHyprland.get_default();
|
||||
const title = bind(hyprland, "focusedClient")
|
||||
.as((fcsClient) => fcsClient.title)
|
||||
.toString();
|
||||
const title = bind(hyprland, "focusedClient").as(
|
||||
(fcsClient) => fcsClient.title,
|
||||
);
|
||||
|
||||
return <label>{title}</label>;
|
||||
return <label cssClasses={["focused-client"]}>{title}</label>;
|
||||
};
|
||||
|
Reference in New Issue
Block a user