Do not make windows with borders transient

Z
This commit is contained in:
Not Nyguen Doze 2011-12-06 16:39:08 -08:00
parent 51ac100c57
commit 4d341f27a5
1 changed files with 8 additions and 2 deletions

View File

@ -227,9 +227,9 @@ void xf_SetWindowStyle(xfInfo* xfi, xfWindow* window, uint32 style, uint32 ex_st
{ {
Atom window_type; Atom window_type;
if (style & WS_POPUP) if (ex_style & WS_EX_TOPMOST || ex_style & WS_EX_TOOLWINDOW)
{ {
// WS_POPUP includes tool tips, dropdown menus, etc. These won't work // These include tool tips, dropdown menus, etc. These won't work
// correctly if the local window manager resizes or moves them. Set // correctly if the local window manager resizes or moves them. Set
// override redirect to prevent this from occurring. // override redirect to prevent this from occurring.
@ -240,6 +240,12 @@ void xf_SetWindowStyle(xfInfo* xfi, xfWindow* window, uint32 style, uint32 ex_st
window_type = xfi->_NET_WM_WINDOW_TYPE_POPUP; window_type = xfi->_NET_WM_WINDOW_TYPE_POPUP;
} }
else if (style & WS_POPUP)
{
// This includes dialogs, popups, etc, that need to be
// full-fledged windows
window_type = xfi->_NET_WM_WINDOW_TYPE_DIALOG;
}
else else
{ {
window_type = xfi->_NET_WM_WINDOW_TYPE_NORMAL; window_type = xfi->_NET_WM_WINDOW_TYPE_NORMAL;