mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
check above->mapped before deciding if it overlaps the window being
2002-10-20 Havoc Pennington <hp@pobox.com> * src/keybindings.c (handle_raise_or_lower): check above->mapped before deciding if it overlaps the window being raiselowered, fix from Stephane Chauveau
This commit is contained in:
parent
c1a88f5457
commit
95e5a13131
@ -1,3 +1,9 @@
|
|||||||
|
2002-10-20 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
|
* src/keybindings.c (handle_raise_or_lower): check above->mapped
|
||||||
|
before deciding if it overlaps the window being raiselowered,
|
||||||
|
fix from Stephane Chauveau
|
||||||
|
|
||||||
2002-10-19 Jeremy Katz <katzj@redhat.com>
|
2002-10-19 Jeremy Katz <katzj@redhat.com>
|
||||||
|
|
||||||
* configure.in: make Xrandr check less noisy
|
* configure.in: make Xrandr check less noisy
|
||||||
|
@ -2711,15 +2711,18 @@ handle_raise_or_lower (MetaDisplay *display,
|
|||||||
{
|
{
|
||||||
MetaRectangle tmp, win_rect, above_rect;
|
MetaRectangle tmp, win_rect, above_rect;
|
||||||
|
|
||||||
meta_window_get_outer_rect (window, &win_rect);
|
if (above->mapped)
|
||||||
meta_window_get_outer_rect (above, &above_rect);
|
{
|
||||||
|
meta_window_get_outer_rect (window, &win_rect);
|
||||||
/* Check if obscured */
|
meta_window_get_outer_rect (above, &above_rect);
|
||||||
if (meta_rectangle_intersect (&win_rect, &above_rect, &tmp))
|
|
||||||
{
|
/* Check if obscured */
|
||||||
meta_window_raise (window);
|
if (meta_rectangle_intersect (&win_rect, &above_rect, &tmp))
|
||||||
return;
|
{
|
||||||
}
|
meta_window_raise (window);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
above = meta_stack_get_above (window->screen->stack, above, TRUE);
|
above = meta_stack_get_above (window->screen->stack, above, TRUE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user