[Xfce4-commits] [xfce/xfce4-panel] 02/02: tasklist: Fix position of group indicator in vertical mode
noreply at xfce.org
noreply at xfce.org
Mon Jul 22 00:15:10 CEST 2019
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-panel.
commit 9cdec85b48ff17f050776c43d96832f801bdcddc
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Mon Jul 22 00:10:22 2019 +0200
tasklist: Fix position of group indicator in vertical mode
---
plugins/tasklist/tasklist-widget.c | 25 +++++++++++++++++++------
1 file changed, 19 insertions(+), 6 deletions(-)
diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index cc5a7c1..b8801ab 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -3705,13 +3705,26 @@ xfce_tasklist_group_button_button_draw (GtkWidget *widget,
radius = log_extent.height / 2;
if (group_child->tasklist->show_labels || icon_size <= 31)
{
- y = allocation->height / 2 + radius;
- if ((y + radius) > allocation->height)
- y = allocation->height - radius;
- if (group_child->tasklist->show_labels)
- x = 24 - radius;
+ if (xfce_tasklist_vertical (group_child->tasklist))
+ {
+ x = allocation->width / 2 + radius;
+ if ((x + radius) > allocation->width)
+ x = allocation->width - radius;
+ if (group_child->tasklist->show_labels)
+ y = 24 - radius;
+ else
+ y = allocation->height / 2 + 8 - radius / 2;
+ }
else
- x = allocation->width / 2 + 8 - radius / 2;
+ {
+ y = allocation->height / 2 + radius;
+ if ((y + radius) > allocation->height)
+ y = allocation->height - radius;
+ if (group_child->tasklist->show_labels)
+ x = 24 - radius;
+ else
+ x = allocation->width / 2 + 8 - radius / 2;
+ }
}
else
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list