If I understand correctly, update_decorations() enables decorations for the window. And when redrawWindowFrame() is called, the if (client.decorations & WindowDecorationTitlebar) evaluates to TRUE and the title bar is being rendered.
I assume it can be fixed by adding following code to the update_decorations() function
I run into this while using Firefox. Setting Firefox to fullscreen (pressing F11) when it is not maximized causes the window title bar to remain.
It does not happen when Firefox window is first maximized and then set to fullscreen.
When a maximized window is going full screen following functions are called (in Window.cc)
The redrawWindowFrame() in this case does not render title bar because
if (client.decorations & WindowDecorationTitlebar)
condition is not met.However, for a non maximized window, following functions are also called multiple times while window is being expanded:
If I understand correctly,
update_decorations()
enables decorations for the window. And whenredrawWindowFrame()
is called, theif (client.decorations & WindowDecorationTitlebar)
evaluates toTRUE
and the title bar is being rendered.I assume it can be fixed by adding following code to the update_decorations() function
Link to patch