...
This commit is contained in:
parent
bca589280c
commit
4b2fbbb2f6
13
src/window.c
13
src/window.c
@ -1338,11 +1338,16 @@ meta_window_focus (MetaWindow *window,
|
|||||||
meta_verbose ("Setting input focus to window %s, input: %d take_focus: %d\n",
|
meta_verbose ("Setting input focus to window %s, input: %d take_focus: %d\n",
|
||||||
window->desc, window->input, window->take_focus);
|
window->desc, window->input, window->take_focus);
|
||||||
|
|
||||||
if (window->shaded && window->frame)
|
/* For output-only or shaded windows, focus the frame.
|
||||||
{
|
* This seems to result in the client window getting key events
|
||||||
/* This is so we can still use keyboard shortcuts
|
* though, so I don't know if it's icccm-compliant.
|
||||||
* and still draw the window as focused.
|
*
|
||||||
|
* Still, we have to do this or keynav breaks for these windows.
|
||||||
*/
|
*/
|
||||||
|
if (window->frame &&
|
||||||
|
(window->shaded ||
|
||||||
|
!(window->input || window->take_focus)))
|
||||||
|
{
|
||||||
if (window->frame)
|
if (window->frame)
|
||||||
{
|
{
|
||||||
meta_verbose ("Focusing frame of %s\n", window->desc);
|
meta_verbose ("Focusing frame of %s\n", window->desc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user