Merge pull request #2352 from Mr-Pine/hyprland-window-fix

This commit is contained in:
Alexis Rouillard 2023-07-29 11:02:39 +02:00 committed by GitHub
commit d3520536c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -25,6 +25,16 @@ Addressed by *hyprland/window*
typeof: bool ++ typeof: bool ++
Show the active window of the monitor the bar belongs to, instead of the focused window. Show the active window of the monitor the bar belongs to, instead of the focused window.
*icon*: ++
typeof: bool ++
default: false ++
Option to hide the application icon.
*icon-size*: ++
typeof: integer ++
default: 24 ++
Option to change the size of the application icon.
# FORMAT REPLACEMENTS # FORMAT REPLACEMENTS
See the output of "hyprctl clients" for examples See the output of "hyprctl clients" for examples

View File

@ -26,6 +26,7 @@ Window::Window(const std::string& id, const Bar& bar, const Json::Value& config)
queryActiveWorkspace(); queryActiveWorkspace();
update(); update();
dp.emit();
// register for hyprland ipc // register for hyprland ipc
gIPC->registerForIPC("activewindow", this); gIPC->registerForIPC("activewindow", this);