wmnet: Fix arrow direction to match manpage
authorAndreas Metzler <ametzler@bebt.de>
Fri, 15 Aug 2025 09:31:48 +0000 (15 11:31 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 15 Aug 2025 17:30:07 +0000 (15 18:30 +0100)
original author: Matthew Ashton <matthew@pez.ca>
Bug-Debian: https://bugs.debian.org/106382
 https://bugs.debian.org/105803

wmnet/wmnet.c

index 3b2a34a..7300786 100644 (file)
@@ -613,21 +613,21 @@ void tock(void) {
                XSetBackground(dpy, graphics_context, black_pixel);
                if(current_tx == True) {
                        XSetForeground(dpy, graphics_context, tx_pixel[HIGH_INTENSITY]);
-                       XCopyPlane(dpy, arrow, *visible_window, graphics_context, 7, 0, 7, 9, 53, 5, 1);
+                       XCopyPlane(dpy, arrow, *visible_window, graphics_context, 0, 0, 7, 9, 46, 5, 1);
                        /* XFillRectangle(dpy, *visible_window, graphics_context, 55, 5, 4, 4);  */
                }
                else {
                        XSetForeground(dpy, graphics_context, grey_pixel);
-                       XCopyPlane(dpy, arrow, *visible_window, graphics_context, 7, 0, 7, 9, 53, 5, 1);
+                       XCopyPlane(dpy, arrow, *visible_window, graphics_context, 0, 0, 7, 9, 46, 5, 1);
                }
                if(current_rx == True) {
                        XSetForeground(dpy, graphics_context, rx_pixel[HIGH_INTENSITY]);
-                       XCopyPlane(dpy, arrow, *visible_window, graphics_context, 0, 0, 7, 9, 46, 5, 1);
+                       XCopyPlane(dpy, arrow, *visible_window, graphics_context, 7, 0, 7, 9, 53, 5, 1);
                        /* XFillRectangle(dpy, *visible_window, graphics_context, 55, 12, 4, 4);  */
                }
                else {
                        XSetForeground(dpy, graphics_context, grey_pixel);
-                       XCopyPlane(dpy, arrow, *visible_window, graphics_context, 0, 0, 7, 9, 46, 5, 1);
+                       XCopyPlane(dpy, arrow, *visible_window, graphics_context, 7, 0, 7, 9, 53, 5, 1);
                }
        }