derekf pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=7b470c402eb4711823fe646d9ff1ffe1dd26f4d7

commit 7b470c402eb4711823fe646d9ff1ffe1dd26f4d7
Author: Derek Foreman <[email protected]>
Date:   Wed Jun 29 11:22:59 2016 -0500

    Set up attributes properly for wl_shell transient windows
    
    This fixes Qt sub-windows.
---
 src/modules/wl_desktop_shell/e_mod_main.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/modules/wl_desktop_shell/e_mod_main.c 
b/src/modules/wl_desktop_shell/e_mod_main.c
index d5f7813..87779ef 100644
--- a/src/modules/wl_desktop_shell/e_mod_main.c
+++ b/src/modules/wl_desktop_shell/e_mod_main.c
@@ -320,6 +320,20 @@ _e_shell_surface_cb_transient_set(struct wl_client *client 
EINA_UNUSED, struct w
    /* set this client as a transient for parent */
    _e_shell_surface_parent_set(ec, parent_resource);
 
+   ec->icccm.accepts_focus = 1;
+   if (!ec->internal)
+     ec->borderless = !ec->internal;
+
+   ec->lock_border = EINA_TRUE;
+   if ((!ec->internal) || (!ec->borderless))
+     ec->border.changed = ec->changes.border = !ec->borderless;
+   ec->netwm.type = E_WINDOW_TYPE_DIALOG;
+   ec->dialog = EINA_TRUE;
+   ec->comp_data->set_win_type = EINA_TRUE;
+   if ((!ec->lock_user_maximize) && (ec->maximized))
+     e_client_unmaximize(ec, E_MAXIMIZE_BOTH);
+   if ((!ec->lock_user_fullscreen) && (ec->fullscreen))
+     e_client_unfullscreen(ec);
    EC_CHANGED(ec);
 }
 

-- 


Reply via email to