mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00:00
if window is not mapped after the calc_showing, don't focus it, it's
2002-05-10 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_focus): if window is not mapped after the calc_showing, don't focus it, it's probably on another workspace or something.
This commit is contained in:
parent
6fe940afc7
commit
052a794427
@ -1,3 +1,9 @@
|
|||||||
|
2002-05-10 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
|
* src/window.c (meta_window_focus): if window is not mapped after
|
||||||
|
the calc_showing, don't focus it, it's probably on another
|
||||||
|
workspace or something.
|
||||||
|
|
||||||
2002-05-09 Havoc Pennington <hp@redhat.com>
|
2002-05-09 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* src/frames.c (show_tip_now): DefaultScreen() returns the screen
|
* src/frames.c (show_tip_now): DefaultScreen() returns the screen
|
||||||
|
@ -2663,6 +2663,14 @@ meta_window_focus (MetaWindow *window,
|
|||||||
}
|
}
|
||||||
|
|
||||||
meta_window_flush_calc_showing (window);
|
meta_window_flush_calc_showing (window);
|
||||||
|
|
||||||
|
if (!window->mapped && !window->shaded)
|
||||||
|
{
|
||||||
|
meta_topic (META_DEBUG_FOCUS,
|
||||||
|
"Window %s is not showing, not focusing after all\n",
|
||||||
|
window->desc);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* For output-only or shaded windows, focus the frame.
|
/* For output-only or shaded windows, focus the frame.
|
||||||
* This seems to result in the client window getting key events
|
* This seems to result in the client window getting key events
|
||||||
|
Loading…
x
Reference in New Issue
Block a user