mirror of
https://github.com/polybar/polybar.git
synced 2026-02-07 23:15:53 +00:00
fix(xworkspaces): Correct desktop index for pinned workspaces
- Use the correct desktop index when only displaying workspaces for the configured monitor/viewport. - Wrapping scroll
This commit is contained in:
@ -29,10 +29,17 @@ namespace modules {
|
||||
UNFOCUSED,
|
||||
};
|
||||
|
||||
struct desktop {
|
||||
explicit desktop(size_t index, desktop_state state, label_t&& label) : index(index), state(state), label(label) {}
|
||||
size_t index;
|
||||
desktop_state state;
|
||||
label_t label;
|
||||
};
|
||||
|
||||
struct viewport {
|
||||
position pos;
|
||||
string name;
|
||||
vector<pair<desktop_state, label_t>> desktops;
|
||||
vector<unique_ptr<desktop>> desktops;
|
||||
viewport_state state;
|
||||
label_t label;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user