-
-
Notifications
You must be signed in to change notification settings - Fork 707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wlr-taskbar: allow sorting by app_id #1932
Conversation
aa9b128
to
b201457
Compare
include/modules/wlr/taskbar.hpp
Outdated
@@ -40,6 +40,8 @@ class Task { | |||
FULLSCREEN = (1 << 3), | |||
INVALID = (1 << 4) | |||
}; | |||
// made public so TaskBar can reorder based on configuration. | |||
Gtk::Button button_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
button_ really need to be public?
If yes please remove the _ :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Button on this Task class needs to be public or else TaskBar class cannot access it to sort and move the button.
There is an alternative way which I mention in the PR comments, but I thought this was cleaner.
Ill remove the underscore as well, missed that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated.
498e7f1
to
9bcb08c
Compare
@Alexays fixed linting errors. |
@Alexays do you think this is OK to merge ? |
9bcb08c
to
7cd21ec
Compare
Sorry again for the delay, your branch seems broken, can you rebase it on master? |
some users (maybe only myself) may want to sort the task bar by app_id which then places occurrences of the same task next to each other. Signed-off-by: Louis DeLosSantos <louis.delos@gmail.com>
7cd21ec
to
79eb2f5
Compare
@Alexays no worries at all, rebased. |
some users (maybe only myself) may want to sort the task bar by app_id which then places occurrences of the same task next to each other.
there is an alternative method to do this, making TaskBar's
tasks_
vector public, and having each Task find itself intbar_->tasks_
and setting their button in the right place, but it "feels" better to have TaskBar decide to place where its Task(s) should be within itself.Signed-off-by: Louis DeLosSantos louis.delos@gmail.com