Skip to content

Commit 4d89c64

Browse files
committed
taskbar: Fixup whitespace
1 parent fdc8431 commit 4d89c64

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

include/modules/wlr/taskbar.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
namespace waybar::modules::wlr {
2626

2727
struct widget_geometry {
28-
int x, y, w, h;
28+
int x, y, w, h;
2929
};
3030

3131
class Taskbar;

src/modules/wlr/taskbar.cpp

+8-5
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,8 @@ void Task::handle_title(const char *title) {
388388
}
389389

390390
void Task::set_minimize_hint() {
391-
zwlr_foreign_toplevel_handle_v1_set_rectangle(handle_, bar_.surface, minimize_hint.x, minimize_hint.y, minimize_hint.w, minimize_hint.h);
391+
zwlr_foreign_toplevel_handle_v1_set_rectangle(handle_, bar_.surface, minimize_hint.x,
392+
minimize_hint.y, minimize_hint.w, minimize_hint.h);
392393
}
393394

394395
void Task::hide_if_ignored() {
@@ -452,9 +453,10 @@ void Task::handle_app_id(const char *app_id) {
452453
}
453454

454455
void Task::on_button_size_allocated(Gtk::Allocation &alloc) {
455-
gtk_widget_translate_coordinates(GTK_WIDGET(button.gobj()), GTK_WIDGET(bar_.window.gobj()), 0, 0, &minimize_hint.x, &minimize_hint.y);
456-
minimize_hint.w = button.get_width();
457-
minimize_hint.h = button.get_height();
456+
gtk_widget_translate_coordinates(GTK_WIDGET(button.gobj()), GTK_WIDGET(bar_.window.gobj()), 0, 0,
457+
&minimize_hint.x, &minimize_hint.y);
458+
minimize_hint.w = button.get_width();
459+
minimize_hint.h = button.get_height();
458460
}
459461

460462
void Task::handle_output_enter(struct wl_output *output) {
@@ -467,7 +469,8 @@ void Task::handle_output_enter(struct wl_output *output) {
467469

468470
if (!button_visible_ && (tbar_->all_outputs() || tbar_->show_output(output))) {
469471
/* The task entered the output of the current bar make the button visible */
470-
button.signal_size_allocate().connect_notify(sigc::mem_fun(this, &Task::on_button_size_allocated));
472+
button.signal_size_allocate().connect_notify(
473+
sigc::mem_fun(this, &Task::on_button_size_allocated));
471474
tbar_->add_button(button);
472475
button.show();
473476
button_visible_ = true;

0 commit comments

Comments
 (0)