xwm: Don't pass reverse order to update_stacking_order_upwards
This was setting the wrong order, and thus also fighting with `raise_window`, creating a flood of configure events. Which seemed to break submenus in Gimp when multiple toplevels were open. This appears to be correct.
This commit is contained in:
parent
8d78328b9e
commit
9875b87e73
1 changed files with 6 additions and 6 deletions
|
|
@ -546,9 +546,9 @@ impl Workspace {
|
|||
));
|
||||
|
||||
if let Some(xwm) = xwm_state.and_then(|state| state.xwm.as_mut()) {
|
||||
if let Err(err) = xwm.update_stacking_order_upwards(
|
||||
window_elements.iter().rev().map(|e| e.id()),
|
||||
) {
|
||||
if let Err(err) =
|
||||
xwm.update_stacking_order_upwards(window_elements.iter().map(|e| e.id()))
|
||||
{
|
||||
warn!(
|
||||
wm_id = ?xwm.id(),
|
||||
?err,
|
||||
|
|
@ -624,9 +624,9 @@ impl Workspace {
|
|||
window_elements.extend(w_elements.into_iter().map(WorkspaceRenderElement::from));
|
||||
|
||||
if let Some(xwm) = xwm_state.and_then(|state| state.xwm.as_mut()) {
|
||||
if let Err(err) = xwm.update_stacking_order_upwards(
|
||||
window_elements.iter().rev().map(|e| e.id()),
|
||||
) {
|
||||
if let Err(err) =
|
||||
xwm.update_stacking_order_upwards(window_elements.iter().map(|e| e.id()))
|
||||
{
|
||||
warn!(
|
||||
wm_id = ?xwm.id(),
|
||||
?err,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue