stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[STUMP] make select-window-by-number honour the numbering defined in *wi


From: Lars Abrahamsson
Subject: [STUMP] make select-window-by-number honour the numbering defined in *window-number-map*
Date: Sat, 3 Sep 2011 20:37:20 +0200

hi,

i've been using stumpwm for a while now, and while i really like it there's one thing that's been bugging me since day one: windows are by default numbered from 0, which makes the shortcuts to switch between windows a bit unintuitive since 0 is right of 9 on the keyboard. anyways, i finally decided to do something about it and started digging around in the source code. after finding *window-number-map* and changing it to start with 1 i thought everything was going to be peachy, but it turns out that while the windows are properly numbered in the window list the keyboard shortcuts to switch between them are still 0-based. the attached patch should make sure that the values from *window-number-map* are used also from select-window-by-number. since i haven't really ever written anything in common-lisp the fix is not super elegant, so feel free to adopt it as necessary.

thanks for an awesome window manager, you guys rock :)

/ mrgnu

Attachment: select-window-by-number.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]