bugGNU Screen - Bugs: bug #51047, "windowlist -g"...


bug #51047: "windowlist -g" progressively sorts by most recently used, even without -m flag

Submitter:  Ethan Warth <redyoshi49q>
Submitted:  Wed 17 May 2017 04:57:11 AM UTC
Votes: 1
Category:  Program Logic Severity:  3 - Normal
Priority:  * 5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  None
Fixed Release:  None Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup

Wed 17 May 2017 04:57:11 AM UTC, original submission:  

When using C-a : "windowlist -g" in one pane of a screen session and then changing active windows in another pane, the displayed list of windows in the first pane are initially sorted by window number as expected; however, the list is reordered such that windows selected in the second pane are bubbled up to the top of the list, as if maintaining a most recently used order (even bringing nested windows outside of their associated groups in doing so).  The window list should not be reordered in this case, since the expected order is by window numbers and the window numbers are not changing.

Using C-a : "windowlist -g -m" works as expected; windows and window groups with the same parent are sorted with respect to each other in MRU order, and the list is updated correctly when different windows become the most recently used.  It's possible that some of the code that reorders windows in a windowlist command is being executed erroneously when the -g flag is specified but the -m flag is not.

This bug was produced in Screen 4.1.0 on Cygwin.  Attached is the .screenrc environment used in producing this bug.

Ethan Warth <redyoshi49q>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #40721:  .screenrc added by redyoshi49q (2KiB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by ssducf (Voted in favor of this item)
  • -email is unavailable- added by redyoshi49q (Submitted the item)
  • -email is unavailable- added by redyoshi49q

    There is 1 vote so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-07-22 ssducf Carbon-Copy- Added ssducf
    2017-05-17 redyoshi49q Attached File- Added .screenrc, #40721
        Carbon-Copy- Added redyoshi49q

    Back to the top

    Powered by Savane 3.13-c54d.
    Corresponding source code