Always set _NET_WM_STATE when a window is shown or hidden, even if it
2006-03-03 Thomas Thurman <thomas@thurman.org.uk> Always set _NET_WM_STATE when a window is shown or hidden, even if it wasn't mapped. * src/window.c (meta_window_hide, meta_window_show): call set_net_wm_state unconditionally
This commit is contained in:
parent
ef47c243c5
commit
ab176cf831
@ -1,3 +1,11 @@
|
|||||||
|
2006-03-03 Thomas Thurman <thomas@thurman.org.uk>
|
||||||
|
|
||||||
|
Always set _NET_WM_STATE when a window is shown or
|
||||||
|
hidden, even if it wasn't mapped.
|
||||||
|
|
||||||
|
* src/window.c (meta_window_hide, meta_window_show):
|
||||||
|
call set_net_wm_state unconditionally
|
||||||
|
|
||||||
2006-03-16 Elijah Newren <newren gmail com>
|
2006-03-16 Elijah Newren <newren gmail com>
|
||||||
|
|
||||||
Add debugging information for edge resistance
|
Add debugging information for edge resistance
|
||||||
|
34
src/window.c
34
src/window.c
@ -2021,17 +2021,14 @@ meta_window_show (MetaWindow *window)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (did_show)
|
set_net_wm_state (window);
|
||||||
{
|
|
||||||
set_net_wm_state (window);
|
|
||||||
|
|
||||||
if (window->struts)
|
if (did_show && window->struts)
|
||||||
{
|
{
|
||||||
meta_topic (META_DEBUG_WORKAREA,
|
meta_topic (META_DEBUG_WORKAREA,
|
||||||
"Mapped window %s with struts, so invalidating work areas\n",
|
"Mapped window %s with struts, so invalidating work areas\n",
|
||||||
window->desc);
|
window->desc);
|
||||||
invalidate_work_areas (window);
|
invalidate_work_areas (window);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2074,17 +2071,14 @@ meta_window_hide (MetaWindow *window)
|
|||||||
set_wm_state (window, IconicState);
|
set_wm_state (window, IconicState);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (did_hide)
|
set_net_wm_state (window);
|
||||||
{
|
|
||||||
set_net_wm_state (window);
|
|
||||||
|
|
||||||
if (window->struts)
|
if (did_hide && window->struts)
|
||||||
{
|
{
|
||||||
meta_topic (META_DEBUG_WORKAREA,
|
meta_topic (META_DEBUG_WORKAREA,
|
||||||
"Unmapped window %s with struts, so invalidating work areas\n",
|
"Unmapped window %s with struts, so invalidating work areas\n",
|
||||||
window->desc);
|
window->desc);
|
||||||
invalidate_work_areas (window);
|
invalidate_work_areas (window);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user