And add a lower() method to Xcb::Window
Just like ::raise().
This commit is contained in:
parent
070921f114
commit
4215599e97
2 changed files with 9 additions and 1 deletions
|
@ -528,7 +528,7 @@ bool Client::manage(xcb_window_t w, bool isMapped)
|
||||||
|
|
||||||
// This should avoid flicker, because real restacking is done
|
// This should avoid flicker, because real restacking is done
|
||||||
// only after manage() finishes because of blocking, but the window is shown sooner
|
// only after manage() finishes because of blocking, but the window is shown sooner
|
||||||
XLowerWindow(display(), frameId());
|
m_frame.lower();
|
||||||
if (session && session->stackingOrder != -1) {
|
if (session && session->stackingOrder != -1) {
|
||||||
sm_stacking_order = session->stackingOrder;
|
sm_stacking_order = session->stackingOrder;
|
||||||
workspace()->restoreSessionStackingOrder(this);
|
workspace()->restoreSessionStackingOrder(this);
|
||||||
|
|
|
@ -432,6 +432,7 @@ public:
|
||||||
void resize(const QSize &size);
|
void resize(const QSize &size);
|
||||||
void resize(uint32_t width, uint32_t height);
|
void resize(uint32_t width, uint32_t height);
|
||||||
void raise();
|
void raise();
|
||||||
|
void lower();
|
||||||
void map();
|
void map();
|
||||||
void unmap();
|
void unmap();
|
||||||
/**
|
/**
|
||||||
|
@ -587,6 +588,13 @@ void Window::raise()
|
||||||
xcb_configure_window(connection(), m_window, XCB_CONFIG_WINDOW_STACK_MODE, values);
|
xcb_configure_window(connection(), m_window, XCB_CONFIG_WINDOW_STACK_MODE, values);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline
|
||||||
|
void Window::lower()
|
||||||
|
{
|
||||||
|
const uint32_t values[] = { XCB_STACK_MODE_BELOW };
|
||||||
|
xcb_configure_window(connection(), m_window, XCB_CONFIG_WINDOW_STACK_MODE, values);
|
||||||
|
}
|
||||||
|
|
||||||
inline
|
inline
|
||||||
void Window::map()
|
void Window::map()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue