From 81d206ba6822a0d3a00cd0f976a4c6a26fcb79e0 Mon Sep 17 00:00:00 2001 From: Jim Grandy Date: Sat, 6 Jul 2013 08:52:25 -0700 Subject: [PATCH] Hand-apply patch (rail: send ShowState when window order changes) from Authentic8: c36a2d7 --- sesman/chansrv/rail.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sesman/chansrv/rail.c b/sesman/chansrv/rail.c index 59b19411..a22336e2 100644 --- a/sesman/chansrv/rail.c +++ b/sesman/chansrv/rail.c @@ -1333,6 +1333,18 @@ rail_configure_request_window(XConfigureRequestEvent* config) window_id = config->window; mask = config->value_mask; LOG(10, ("chansrv::rail_configure_request_window: mask %d", mask)); + if (mask & CWStackMode) + { + LOG(10, ("chansrv::rail_configure_request_window: CWStackMode " + "detail 0x%8.8x above 0x%8.8x", config->detail, config->above)); + if (config->detail == Above) + { + LOG(10, ("chansrv::rail_configure_request_window: bring to front " + "window_id 0x%8.8x", window_id)); + /* 0x05 - Show the window in its current size and position. */ + rail_show_window(window_id, 5); + } + } rwd = rail_get_window_data(window_id); if (rwd == 0) {