[Fixes bug #1176847] Display the selection layer on top of the active
layer in the layers list widget.

This solution fixes the original issue (bug #1175733), and I reverted
the changes that caused a regression (bug #1176847).