sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 7144fb9fc3b3d3b45d23deaab6a10caf3216cca4
parent b5d778dd828f8a772373931adaf10152f7db5854
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu, 30 Jun 2016 08:30:03 -0400

Spawn windows as floating if they have a parent

Fixes #604

Diffstat:
Msway/handlers.c | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/sway/handlers.c b/sway/handlers.c @@ -235,8 +235,12 @@ static bool handle_view_created(wlc_handle handle) { switch (wlc_view_get_type(handle)) { // regular view created regularly case 0: - newview = new_view(focused, handle); - wlc_view_set_state(handle, WLC_BIT_MAXIMIZED, true); + if (parent) { + newview = new_floating_view(handle); + } else { + newview = new_view(focused, handle); + wlc_view_set_state(handle, WLC_BIT_MAXIMIZED, true); + } break; // Dmenu keeps viewfocus, but others with this flag don't, for now simulate