[Xfce4-commits] [xfce/xfce4-settings] 36/67: display: Show indicator which monitor is primary
noreply at xfce.org
noreply at xfce.org
Sat Sep 22 11:23:27 CEST 2018
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-settings.
commit a6eee341166d2133f828d97e77b33901b0a9180b
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Sun Aug 26 18:08:02 2018 +0200
display: Show indicator which monitor is primary
---
dialogs/display-settings/main.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dialogs/display-settings/main.c b/dialogs/display-settings/main.c
index 7bf499d..d165292 100644
--- a/dialogs/display-settings/main.c
+++ b/dialogs/display-settings/main.c
@@ -2856,6 +2856,13 @@ paint_output (cairo_t *cr, int i, double *snap_x, double *snap_y)
cairo_set_source (cr, pat_radial);
cairo_fill (cr);
+ /* Draw a panel type rectangle to show which monitor is primary */
+ if (xfce_randr->status[output->id] == XFCE_OUTPUT_STATUS_PRIMARY) {
+ cairo_rectangle (cr, x + 1, y + 1, end_x - x - 2, 7);
+ cairo_set_source_rgba (cr, 0.0, 0.0, 0.0, 0.6);
+ cairo_fill (cr);
+ }
+
/* Display name label*/
if (mirrored == 1)
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list