Fix short flicker when new clients appear (#1138)

We are doing more and more things lazily in the C code. The newest
addition is lazily configuring clients, which means that geometry
changes are only applied later.

However, this caused a short flicker when a new client appears: We were
first making the client visible and then moving it to its "proper"
position.

Since unbanning is also done lazily, we just have to change the order in
which we apply these operations to fix this.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-10-06 18:50:13 +02:00 committed by Daniel Hahler
parent 332681aaad
commit b0b1e212ec
1 changed files with 2 additions and 2 deletions

View File

@ -46,10 +46,10 @@ awesome_refresh(void)
{ {
screen_refresh(); screen_refresh();
luaA_emit_refresh(); luaA_emit_refresh();
banning_refresh();
stack_refresh();
drawin_refresh(); drawin_refresh();
client_refresh(); client_refresh();
banning_refresh();
stack_refresh();
return xcb_flush(globalconf.connection); return xcb_flush(globalconf.connection);
} }