window: Track known_to_compositor and visible_to_compositor separately
Really, visible_to_compositor means that the window is shown, e.g. not minimized. We need to be using a boolean tracking whether we've called meta_compositor_add_window / meta_compositor_remove_window. This fixes a jump during window placement when a window appears.
This commit is contained in:
@@ -220,10 +220,18 @@ struct _MetaWindow
|
||||
*/
|
||||
guint hidden : 1;
|
||||
|
||||
/* Whether the compositor thinks the window is visible
|
||||
/* Whether the compositor thinks the window is visible.
|
||||
* This should match up with calls to meta_compositor_show_window /
|
||||
* meta_compositor_hide_window.
|
||||
*/
|
||||
guint visible_to_compositor : 1;
|
||||
|
||||
/* Whether the compositor knows about the window.
|
||||
* This should match up with calls to meta_compositor_add_window /
|
||||
* meta_compositor_remove_window.
|
||||
*/
|
||||
guint known_to_compositor : 1;
|
||||
|
||||
/* When we next show or hide the window, what effect we should
|
||||
* tell the compositor to perform.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user