fdo#84938: replace WINDOW_BORDER constants with enum

Change-Id: I91ca8e09971aee26f16257a4fd01125cfb2ebcdb