mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05: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>
|
||||
|
||||
* src/frames.c (show_tip_now): DefaultScreen() returns the screen
|
||||
|
@ -2664,6 +2664,14 @@ meta_window_focus (MetaWindow *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.
|
||||
* This seems to result in the client window getting key events
|
||||
* though, so I don't know if it's icccm-compliant.
|
||||
|
Loading…
Reference in New Issue
Block a user