aboutsummaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2016-12-01Implement permit and reject commandsDrew DeVault
2016-12-01Implement policy lookupsDrew DeVault
2016-12-01Add config related code and initial headersDrew DeVault
2016-11-02change bar colors from char[10] to *charD.B
This commit removes has_* booleans from bar color struct. It also generalizes of functions in commands/bar/colors.c.
2016-11-02add bar colours for focused_(workspace|statusline|separator)D.B
If these aren't defined in config, color settings without 'focused_' prefix are used as a fallback.
2016-11-02use urgent_ws color in swaybar if binding_mode is undefinedD.B
2016-10-25Add left_handed support for input devicesMichał Winiarski
Some users may want to switch buttons on their input devices, turns out libinput already supports it. Let's add a support for it in our config. Signed-off-by: Michał Winiarski <knr@hardline.pl>
2016-10-12Revert "Fixes dealing with workspace_layout and related bugs [rfc]"Drew DeVault
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-07add force_focus_wrapping optionD.B
2016-10-06add click on title_bar to focus a containerNicolas Cornu
2016-09-21add unique IDs to containersZandr Martin
2016-09-18implement "focused container" feature for swaygrabZandr Martin
2016-09-17add global `current_focus` pointerZandr Martin
2016-09-07squash commits, move enum into resize.cZandr Martin
2016-09-05Fix constant scale factor in font codeDrew DeVault
2016-09-05Add client support for HiDPIDrew DeVault
This adds HiDPI support to swaybar, swaybg, and swaylock.
2016-09-05Initial testing on hidpi clientsDrew DeVault
2016-09-02Merge branch 'master' of git://github.com/SirCmpwn/sway into commands-refactorZandr Martin
2016-09-01refactor commands.cZandr Martin
2016-09-01Reorganize includesDrew DeVault
2016-08-03Simplify focus settingTony Crisci
Merge the main rendering paths of all containers to make focus setting a bit simpler and easier to follow.
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-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-31Implement focus handling for containersTony Crisci
The previous implementation of focus handling assumed that only views can be focused. Containers can also be focused with a command like `focus parent` or `focus child`. Change `set_focused_container()` to handle the case of the given container being a container with children and update borders accordingly.
2016-07-30implement solid color rendering for swaybgZandr Martin
2016-07-30properly hide top border inside tabbed/stackedD.B
When titlebar is hidden, top border of the topmost view inside tabbed/stacked container will not be drawn. This is changed in layout.c On the other hand, top border should be drawn sometimes, for example when titlebar is hidden on a view that is not the topmost inside tabbed/stacked container. This is changed in border.c
2016-07-28Update hidpi support to latest wlc APIDrew DeVault
2016-07-28Initial pass on HiDPI supportDrew DeVault
2016-07-27Implement `focus child` commandTony Crisci
The `focus child` command focuses the child container within the selected container.
2016-07-21Arrange backgrounds only when requiredMykyta Holubakha
2016-07-21More progress on window eventsMykyta Holubakha
2016-07-21Initial work on window eventsMykyta Holubakha
2016-07-20Properly construct event bitmasksMykyta Holubakha
2016-07-17Turn swaybg into a shell surfaceDrew DeVault
2016-07-17Implement configurable wrapping on bar ws scrollDrew DeVault
2016-07-16refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use ↵D.B
where needed
2016-07-16Fix #753Drew DeVault
2016-07-15Enable windows to register to get notified when the mouse wheel is scrolledDavid Eklov
2016-07-15Rename pointer_input::notify to indicate that is called on button clicksDavid Eklov
2016-07-14Compute what workspace button is clickedDavid Eklov
This commit does not do anything with this information other than logging it.
2016-07-14Use int instead of wl_fixed_t for mouse coordinatesDavid Eklov
2016-07-14Extract workspace size computation from render_workspace_button()David Eklov
Also remove some unnecessary strtup()s and rename a few variables and functions.
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-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-06Fix formatting guide violations (spaces instead of tabs)David Eklov
2016-07-06Enable windows to register to get notified of pointer button eventsDavid Eklov
2016-07-04Fix formatting guide violations (spaces instead of tabs)David Eklov