From 74a62e377e931a5fa46ea300dbaedbb2cf58042e Mon Sep 17 00:00:00 2001
From: patrick96
Date: Wed, 16 Oct 2019 00:30:10 +0200
Subject: [PATCH] fix(bar): Configure window before remapping
Some WMs like i3 discard position information when unmapping the bar and
because of that the bar would be at the wrong position after being
remapped.
Fixes #1484
Ref: https://github.com/i3/i3/pull/3834
---
include/components/bar.hpp | 2 ++
src/components/bar.cpp | 28 ++++++++++++++++++++++------
2 files changed, 24 insertions(+), 6 deletions(-)
diff --git a/include/components/bar.hpp b/include/components/bar.hpp
index 2d556e4f..1851bde2 100644
--- a/include/components/bar.hpp
+++ b/include/components/bar.hpp
@@ -74,6 +74,8 @@ class bar : public xpp::event::sink