mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
be robust against the panel's lame "set a negative number for struts"
2003-01-22 Havoc Pennington <hp@pobox.com> * src/window.c (update_struts): be robust against the panel's lame "set a negative number for struts" thing, even though we'll also fix the panel.
This commit is contained in:
parent
82bd20911c
commit
fabc5507f3
@ -1,3 +1,9 @@
|
||||
2003-01-22 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* src/window.c (update_struts): be robust against the panel's
|
||||
lame "set a negative number for struts" thing, even though
|
||||
we'll also fix the panel.
|
||||
|
||||
2003-01-21 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
Fix for the "mangles focus window when switching workspaces
|
||||
|
14
src/window.c
14
src/window.c
@ -5173,6 +5173,20 @@ update_struts (MetaWindow *window)
|
||||
window->top_strut = struts[2];
|
||||
window->bottom_strut = struts[3];
|
||||
|
||||
meta_verbose ("_NET_WM_STRUT struts %d %d %d %d for window %s\n",
|
||||
window->left_strut, window->right_strut,
|
||||
window->top_strut, window->bottom_strut,
|
||||
window->desc);
|
||||
|
||||
if (window->left_strut < 0)
|
||||
window->left_strut = 0;
|
||||
if (window->right_strut < 0)
|
||||
window->right_strut = 0;
|
||||
if (window->top_strut < 0)
|
||||
window->top_strut = 0;
|
||||
if (window->bottom_strut < 0)
|
||||
window->bottom_strut = 0;
|
||||
|
||||
meta_verbose ("Using _NET_WM_STRUT struts %d %d %d %d for window %s\n",
|
||||
window->left_strut, window->right_strut,
|
||||
window->top_strut, window->bottom_strut,
|
||||
|
Loading…
Reference in New Issue
Block a user