winex11.drv: Use dialog window type again for owned popup windows.
This commit is contained in:
parent
84f2960e5b
commit
fd043c5644
|
@ -1173,7 +1173,13 @@ static void set_wm_hints( Display *display, struct x11drv_win_data *data )
|
||||||
/* size hints */
|
/* size hints */
|
||||||
set_size_hints( display, data, style );
|
set_size_hints( display, data, style );
|
||||||
|
|
||||||
window_type = x11drv_atom(_NET_WM_WINDOW_TYPE_NORMAL);
|
/* Only use dialog type for owned popups. Metacity allows making fullscreen
|
||||||
|
* only normal windows, and doesn't handle correctly TRANSIENT_FOR hint for
|
||||||
|
* dialogs owned by fullscreen windows.
|
||||||
|
*/
|
||||||
|
if ((style & WS_POPUP) && owner) window_type = x11drv_atom(_NET_WM_WINDOW_TYPE_DIALOG);
|
||||||
|
else window_type = x11drv_atom(_NET_WM_WINDOW_TYPE_NORMAL);
|
||||||
|
|
||||||
XChangeProperty(display, data->whole_window, x11drv_atom(_NET_WM_WINDOW_TYPE),
|
XChangeProperty(display, data->whole_window, x11drv_atom(_NET_WM_WINDOW_TYPE),
|
||||||
XA_ATOM, 32, PropModeReplace, (unsigned char*)&window_type, 1);
|
XA_ATOM, 32, PropModeReplace, (unsigned char*)&window_type, 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue