]> git.sur5r.net Git - i3/i3/commit
Fix wrong placement of i3bar when connecting/disconnecting outputs
authorhaptix@web.de <haptix@web.de>
Wed, 29 May 2013 16:02:46 +0000 (18:02 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 30 May 2013 10:18:27 +0000 (12:18 +0200)
commit4937788e8d4b1c0a65c95b4e65885f717cbf95ab
treea6f654e2ec81e1a1db04d31fd128e35b232c1b4c
parent8353a387c99cb2d5b90bbc83bb3b41fb2a0895a1
Fix wrong placement of i3bar when connecting/disconnecting outputs

When connecting or disconnecting an output, i3bar reconfigures its
windows. This also included an unmapping of the bars, and a remapping of
all docked bars. Thus, the bars were misplaced when a monitor was
disconnected.

This commit assures that the remapping of the bars only takes place,
when the mode has actually changed. This patch also takes care of an
inconsistency when pressing the bar_modifier while switching the mode.
Also, the xkbDisplay is now closed correctly, when deregestering the xkb
keyevents.
i3bar/include/xcb.h
i3bar/src/ipc.c
i3bar/src/xcb.c