awesome/lib
Uli Schlachter f6761e662c wibox.drawable: React to screen changes
The previous commit made wibox.drawable turn a "normal redraw" into a complete
repaint when it was moved to another screen. However, nothing happened until
that normal redraw.

This commit triggers a normal redraw when we are (possibly) moved to another
screen. More precise, this means that whenever a screen appears, disappears or
changes its geometry and when the drawable is moved, we trigger a normal redraw.
This redraw will likely do nothing, because no relayout is pending and no part
of the surface needs a redraw, so it is cheap.

However, if the drawable really ends up on another screen, then the code from
the previous commits makes us do a full relayout and redraw.

This commit likely fixes the current instability of test-screen-changes.lua. See
https://github.com/awesomeWM/awesome/issues/982#issuecomment-231712056.

As explained there, the test fails because the fake screen that it created is
still referenced, so cannot be garbage collected, but the test doesn't succeed
unless the screen is garbage collected. So something is still referencing the
screen that was removed. This something can be a client's titlebar, because the
underlying drawable still has a context member referring to the old screen.

This commit should fix that problem, because we now trigger a redraw which will
compute a new context and thus the reference to the old screen is released.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-09-24 14:37:07 +02:00
..
awful Fix magnifier layout when focus is on another screen 2016-09-24 14:37:07 +02:00
beautiful Minor doc fixes 2016-03-06 14:46:13 +01:00
gears wallpaper: Do not use the deprecated geometry access 2016-09-11 02:10:02 -04:00
menubar menubar: Do not use the deprecated geometry access 2016-09-11 01:55:33 -04:00
naughty wibox: Create a container module 2016-05-30 17:51:19 -04:00
wibox wibox.drawable: React to screen changes 2016-09-24 14:37:07 +02:00