summarylogtreecommitdiffstats
path: root/fix_12_year_display.patch
diff options
context:
space:
mode:
authorBrian Bidulock2015-06-10 22:39:55 -0600
committerBrian Bidulock2015-06-10 22:39:55 -0600
commit6eccc623242d25edf8c705cbd8b95f42b47c1965 (patch)
treedbbc749ff264e02adabb27ae803e02fe07066982 /fix_12_year_display.patch
downloadaur-6eccc623242d25edf8c705cbd8b95f42b47c1965.tar.gz
initial version
Diffstat (limited to 'fix_12_year_display.patch')
-rw-r--r--fix_12_year_display.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/fix_12_year_display.patch b/fix_12_year_display.patch
new file mode 100644
index 00000000000..27609410b15
--- /dev/null
+++ b/fix_12_year_display.patch
@@ -0,0 +1,24 @@
+Description: Fix display when both -12 and -year are given
+Author: Vino Fernando Crescini <jcrescin@cit.uws.edu.au>
+Bug-Debian: http://bugs.debian.org/228985
+
+Index: wmclock-1.0.14/wmclock.c
+===================================================================
+--- wmclock-1.0.14.orig/wmclock.c 2010-12-22 13:12:28.000000000 +0100
++++ wmclock-1.0.14/wmclock.c 2011-06-02 12:11:51.233840631 +0200
+@@ -849,7 +849,14 @@
+ #endif /* !ONLY_SHAPED_WINDOW */
+ for (i = 0; i < NUM_TIME_POSITIONS; i++)
+ {
+- xPos[i] += enable12HourClock ? timePos24[i] : timePos12[i];
++ if (enable12HourClock && (!enableYearDisplay))
++ {
++ xPos[i] += timePos24[i];
++ }
++ else
++ {
++ xPos[i] += timePos12[i];
++ }
+ }
+
+ /* Open the display */