@@ -388,7 +388,8 @@ void Task::handle_title(const char *title) {
388
388
}
389
389
390
390
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 );
392
393
}
393
394
394
395
void Task::hide_if_ignored () {
@@ -452,9 +453,10 @@ void Task::handle_app_id(const char *app_id) {
452
453
}
453
454
454
455
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 ();
458
460
}
459
461
460
462
void Task::handle_output_enter (struct wl_output *output) {
@@ -467,7 +469,8 @@ void Task::handle_output_enter(struct wl_output *output) {
467
469
468
470
if (!button_visible_ && (tbar_->all_outputs () || tbar_->show_output (output))) {
469
471
/* 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));
471
474
tbar_->add_button (button);
472
475
button.show ();
473
476
button_visible_ = true ;
0 commit comments