summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorLines
2016-10-07Merge pull request #935 from thejan2009/wrap-focus-changeFurkan Sahin-0/+2
Wrap focus change
2016-09-21add unique IDs to containersFurkan Sahin-0/+7
2016-09-18implement "focused container" feature for swaygrabFurkan Sahin-0/+10
2016-09-17add global `current_focus` pointerFurkan Sahin-10/+11
2016-09-07squash commits, move enum into resize.cFurkan Sahin-14/+0
2016-09-05Fix constant scale factor in font codeFurkan Sahin-3/+5
2016-09-05Add client support for HiDPIFurkan Sahin-1/+3
This adds HiDPI support to swaybar, swaybg, and swaylock.
2016-09-05Initial testing on hidpi clientsFurkan Sahin-0/+1
2016-09-02Merge branch 'master' of git://github.com/SirCmpwn/sway into commands-refactorFurkan Sahin-0/+0
2016-09-01refactor commands.cFurkan Sahin-0/+117
2016-09-01Reorganize includesFurkan Sahin-0/+0
2016-08-03Simplify focus settingFurkan Sahin-1/+0
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_focusFurkan Sahin-1/+0
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 bordersFurkan Sahin-1/+0
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 containersFurkan Sahin-0/+5
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 swaybgFurkan Sahin-6/+8
2016-07-30properly hide top border inside tabbed/stackedFurkan Sahin-0/+1
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-18Update hidpi support to latest wlc APIFurkan Sahin-0/+2
2016-07-16Initial pass on HiDPI supportFurkan Sahin-0/+1
2016-07-27Implement `focus child` commandFurkan Sahin-1/+2
The `focus child` command focuses the child container within the selected container.
2016-07-21Arrange backgrounds only when requiredFurkan Sahin-0/+1
2016-07-19More progress on window eventsFurkan Sahin-0/+1
2016-07-12Initial work on window eventsFurkan Sahin-0/+4
2016-07-20Properly construct event bitmasksFurkan Sahin-8/+8
2016-07-17Turn swaybg into a shell surfaceFurkan Sahin-0/+2
2016-07-17Implement configurable wrapping on bar ws scrollFurkan Sahin-0/+2
2016-07-16refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use ↵Furkan Sahin-0/+6
where needed
2016-07-16Fix #753Furkan Sahin-2/+1
2016-07-11Enable windows to register to get notified when the mouse wheel is scrolledFurkan Sahin-0/+9
2016-07-11Rename pointer_input::notify to indicate that is called on button clicksFurkan Sahin-1/+1
2016-07-11Compute what workspace button is clickedFurkan Sahin-0/+6
This commit does not do anything with this information other than logging it.
2016-07-11Use int instead of wl_fixed_t for mouse coordinatesFurkan Sahin-3/+3
2016-07-10Extract workspace size computation from render_workspace_button()Furkan Sahin-0/+8
Also remove some unnecessary strtup()s and rename a few variables and functions.
2016-07-06Set panels' geometries correctly and don't render them explicitlyFurkan Sahin-0/+2
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-10Don't treat backgrounds as shell surfacesFurkan Sahin-2/+0
This code had some issues. Remove it now so that we can start clean and fix it later.
2016-07-11Suspend destruction of wss when creating viewsFurkan Sahin-0/+2
2016-07-07Fix tabbed/stacked corner case #742Furkan Sahin-0/+5
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)Furkan Sahin-20/+20
2016-07-05Enable windows to register to get notified of pointer button eventsFurkan Sahin-0/+10
2016-07-04Fix formatting guide violations (spaces instead of tabs)Furkan Sahin-20/+20
2016-07-04Move code to make a window a shell surface into seperate functionFurkan Sahin-0/+1
2016-07-04Enable backgrounds and panels to be shell surfacesFurkan Sahin-0/+4
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-04Merge branch 'master' into get-tree-commandFurkan Sahin-2/+12
2016-07-04implement `get_tree` commandFurkan Sahin-0/+13
2016-07-03typo in focus.hFurkan Sahin-1/+1
2016-07-03resize command updates (#713)Furkan Sahin-2/+12
2016-06-27Add get_log_level() to encapsulate v (current log level)Furkan Sahin-0/+1
This patch also makes all global variable in log.c static.
2016-06-11implement resize command for absolute dimensionsFurkan Sahin-0/+1
2016-06-11cleanup + add timeouts for pid_workspace listFurkan Sahin-0/+5
2016-06-11clean up pid/workspace stuffFurkan Sahin-0/+2