Window list order

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Window list order

Janez Belina
I've been using xfce's panel with stump since I started using a laptop, and I've noticed something that bothered me. It seems xfces window list is a simple list, where windows are ordered by time of creation, which i would assume to be the same model stump would use for cycling windows via C-t n/p and so on, but it doesnt always seem to be the case, as sometimes stump seems to cycle almost randomly through the list (at least i cant see a pattern). This is bothersome as I would take my visual cues as to which window im cycling to from xfces panel, and end up somewhere else entirely. So anyways, whats up with that?

_______________________________________________
Stumpwm-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/stumpwm-devel
Reply | Threaded
Open this post in threaded view
|

Re: Window list order

Shawn Betts-3
On Tue, Sep 24, 2013 at 1:20 AM, Janez Belina <[hidden email]> wrote:
> I've been using xfce's panel with stump since I started using a laptop, and
> I've noticed something that bothered me. It seems xfces window list is a
> simple list, where windows are ordered by time of creation, which i would
> assume to be the same model stump would use for cycling windows via C-t n/p
> and so on, but it doesnt always seem to be the case, as sometimes stump
> seems to cycle almost randomly through the list (at least i cant see a
> pattern). This is bothersome as I would take my visual cues as to which
> window im cycling to from xfces panel, and end up somewhere else entirely.
> So anyways, whats up with that?

In Stumpwm each window has a number associated with it. Stumpwm sorts
the windows by number. So long as you are only creating windows then
sorting by number and creation time produces the same ordering.
However, when a window is deleted the windows keep their numbers
(window #1 stays windows #1, and C-t 1 will go to the expected
window). This means there is now a hole in the list. So the next
window is placed in that hole, taking on the same number as the last
deleted window. It's all very sane if you use C-t w to list the
windows.

I'm not sure how you could get xfce's panel and stumpwm working
together better, though.

-Shawn

_______________________________________________
Stumpwm-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/stumpwm-devel