aboutsummaryrefslogtreecommitdiff
path: root/sway/handlers.c
AgeCommit message (Collapse)Author
2016-10-11generalize wrapping views under workspacesD.B
2016-10-11add workspace_layout, ensure ws is always L_HORIZD.B
Add swayc_change_layout function, which changes either layout or workspace_layout, depending on the container type. Workspace being always L_HORIZ makes this much more i3-compatible.
2016-10-11wrap workspace's child into a container if neededD.B
If workspace has stacked/tabbed layout, its direct children should be wrapped into a container which enables them to draw the titlebar.
2016-10-08fix for_window [] move scratchpadD.B
- move wlc_view_set_mask before applying window criteria - check parent_container because container in scratchpad doesn't have a parent
2016-10-06fix for click on title_barNicolas Cornu
- Check null pointer for swayc_parent_by_type - Split lines to follow coding style
2016-10-06add click on title_bar to focus a containerNicolas Cornu
2016-09-07squash commits, move enum into resize.cZandr Martin
2016-09-05Add support for * input configsDrew DeVault
Closes #852
2016-09-01Reorganize includesDrew DeVault
2016-08-05Fix switch to prev ws on handle_view_createdD.B
Switching back to original workspace should be done only if workspace was switched while appending new view.
2016-08-01bugfix: focus container on output when focusedTony Crisci
Focus the container on the output (not the output itself) when an output is focused. This is intended to fix a bug where borders are not updated correctly when switching the vt away/back to sway.
2016-08-01Remove dead global locked_view_focusTony Crisci
The value of `locked_view_focus` is always false. Remove dead code associated with this variable to simplify things.
2016-07-31Bugfix: descend focus stack on new window focusTony Crisci
When switching back to a workspace after new window creation, it is now necessary to descend the focus stack into the focused container of the workspace to determine which container should get the focus. This is because the `set_focused_container()` function no longer automatically descends into the focus stack to find the correct view to focus.
2016-07-31Refactor functions to update container bordersTony Crisci
Replace `update_view_border()` with `update_container_border()`. The latter should handle both the case where the container is a view or if the container has children.
2016-07-29remove outdated (when wlc commit merged) commentZandr Martin
2016-07-29update handler to get pid from wlc for all viewsZandr Martin
2016-07-29Fix swaybg sizing on hidpi outputsDrew DeVault
2016-07-29Merge remote-tracking branch 'origin/hidpi'Drew DeVault
2016-07-28third try for #678Zandr Martin
2016-07-28Update hidpi support to latest wlc APIDrew DeVault
2016-07-28Initial pass on HiDPI supportDrew DeVault
2016-07-23don't passthrough a floating_scroll event to focused windowD.B
2016-07-21Initial work on window eventsMykyta Holubakha
2016-07-21Remove arrange_windows from post-renderDrew DeVault
Fixes #741
2016-07-17Fix clang warningDrew DeVault
2016-07-17Turn swaybg into a shell surfaceDrew DeVault
2016-07-16refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use ↵D.B
where needed
2016-07-14Set panels' geometries correctly and don't render them explicitlyDavid Eklov
Panels were explicitly rendered by calling wlc_surface_render in handle_output_pre_render. Calling wlc_surface_render does not set the surface's geometry (like wlc_view_set_geometry does). Sway did not call wlc_view_set_geometry for panels, so wlc defaulted their geometry to be at the origin. This is not correct for bars unless their location is top. Furthermore, for a surface to receive pointer events, its mask has to be set to visible. This causes wlc to render these surfaces, causing panels and backgrounds to be rendered twice. This commit makes panels and surfaces visible, sets the correct geometries and removes the code that explicitly rendered them.
2016-07-14Don't treat backgrounds as shell surfacesDavid Eklov
This code had some issues. Remove it now so that we can start clean and fix it later.
2016-07-15Suspend destruction of wss when creating viewsMykyta Holubakha
2016-07-15Spawn new views to target ws's focused containerMykyta Holubakha
2016-07-07Fix tabbed/stacked corner case #742D.B
Tabbed/stacked containers are now created only if a view is present on the workspace. If a view is created on previously empty tabbed/stacked workspace, it gets wrapped in a container.
2016-07-04Enable backgrounds and panels to be shell surfacesDavid Eklov
Prior to this commit all windows (e.g. shell surfaces) were handled the same way in handle_view_created. Since backgrounds and panels have to be treated differently, they could not be shell surfaces. This changes checks whether a client is a background or a panel in handle_view_created and exists to let them be dealt with elsewhere.
2016-07-04I think this fixes #678Zandr Martin
2016-06-30Spawn windows as floating if they have a parentDrew DeVault
Fixes #604
2016-06-21Check if found ws is focused in new view handlerMykyta Holubakha
Fixes #714, by preventing change of focus from a window to the whole ws
2016-06-11clean up pid/workspace stuffZandr Martin
2016-06-10semi-working (only non-client/server wayland apps)Zandr Martin
2016-06-06messy, unfinished versionZandr Martin
2016-05-31Initial work for floating view with sane valuesDenis Doria
2016-05-14Support floating_scroll sidewaysMykyta Holubakha
2016-05-08Remove FSB_GAPS_INNER and FSB_GAPS_OUTERMykyta Holubakha
2016-05-07Implemented configurable floating scroll behaviorMykyta Holubakha
2016-05-01Update view title of tabbed/stacked windowsMikkel Oscar Lyderik
Requires Cloudef/wlc@80bf003 Fix #623
2016-04-17Use correct format string for x86_64 and i686Mikkel Oscar Lyderik
Fix #587
2016-04-09Only update geometry of single floating viewMikkel Oscar Lyderik
2016-04-02Fix spelling mistakesEric Engestrom
2016-03-30Fix pointer scroll thingDrew DeVault
2016-03-30Remove leftover commentDrew DeVault
2016-03-30New feature: adjust gaps with floating_mod+scrollDrew DeVault
I made this configurable but I didn't make the command for it. That's left as an exercise to an eager contributor. mod_scroll_behavior [gaps inner|gaps outer] Would merge implementions of more behaviors for mod+scroll, if anyone has some neato ideas.