Skip to content

Commit b3cb09e

Browse files
committed
Don't flush calc_showing on X11 raise so newly mapped windows still get focus (#772).
1 parent 25f17c1 commit b3cb09e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/core/window.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5594,8 +5594,11 @@ meta_window_raise (MetaWindow *window)
55945594
* It is important that this runs before meta_stack_raise() because
55955595
* showing a window may overwrite its stacking order based on the
55965596
* stacking rules for newly shown windows.
5597+
* Skip X11: flushing here can prevent newly mapped windows from
5598+
* receiving focus.
55975599
*/
5598-
meta_window_flush_calc_showing (window);
5600+
if (window->client_type != META_WINDOW_CLIENT_TYPE_X11)
5601+
meta_window_flush_calc_showing (window);
55995602

56005603
ancestor = meta_window_find_root_ancestor (window);
56015604

0 commit comments

Comments
 (0)