aboutsummaryrefslogtreecommitdiff
path: root/sway/handlers.c
AgeCommit message (Collapse)Author
2017-06-14Merge branch 'master' into server-decorationDrew DeVault
2017-06-14Fix Firefox address bar thingDrew DeVault
And probably some other stuff too
2017-05-04Add mouse button bindingsJosip Janzic
Adds support for bindings like: bindsym button3 floating toggle bindsym $mod+button3 floating toggle
2017-04-28Implement KDE's server-side decoration protocolDrew DeVault
2017-04-26Fix handling of floating windowsDrew DeVault
2017-04-26Implement no_focusDrew DeVault
Ref #2
2017-04-16Disambiguate get_*_policy() and get_*_policy_mask()Jerzi Kaminsky
2017-03-18prevent fullscreen focus thieveryZandr Martin
I believe this fixes #1102
2017-03-10UnGNUify the codebaseDrew DeVault
2017-02-06xdg-positioner: log window placementMykyta Holubakha
2017-02-06Handle xdg-positioner stuffMykyta Holubakha
2017-01-19Properly place windows with xdg-positionerMykyta Holubakha
2017-01-11Fix #1008Drew DeVault
2016-12-15Handle some more memory allocation failuresDrew DeVault
2016-12-15Handle config-related allocation failuresDrew DeVault
2016-12-04add workspace_layout to containerD.B
Add swayc_change_layout function, which changes either layout or workspace_layout, depending on the container type.
2016-12-02Enforce command policiesDrew DeVault
2016-12-01Enforce mouse permissionsDrew DeVault
2016-12-01Enforce keyboard permissionsDrew DeVault
2016-12-01Enforce fullscreen permissionsDrew DeVault
2016-10-12Revert "Fixes dealing with workspace_layout and related bugs [rfc]"Drew DeVault
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.