aboutsummaryrefslogtreecommitdiff
path: root/sway/config/output.c
AgeCommit message (Collapse)Author
2018-09-01Do not modeset disabled outputsemersion
2018-08-26Merge pull request #2513 from RyanDwyer/rename-root-outputsDrew DeVault
Rename sway_root.outputs to sway_root.all_outputs
2018-08-26Remove layout.cRyan Dwyer
When we have type safety we'll need to have functions for workspace_add_tiling and so on. This means the existing container functions will be just for containers, so they are being moved to container.c. At this point layout.c doesn't contain much else, so I've relocated everything and removed the file. * container_swap and its static functions have been moved to the swap command and made static. * container_recursive_resize has been moved to the resize command and made static. * The following have been moved to container.c: * container_handle_fullscreen_reparent * container_insert_child * container_add_sibling * container_add_child * container_remove_child * container_replace_child * container_split * enum movement_direction and sway_dir_to_wlr have been moved to util.c. Side note: Several commands included layout.h which then included root.h. With layout.h gone, root.h has to be included by those commands.
2018-08-25Rename sway_root.outputs to sway_root.all_outputsRyan Dwyer
This list includes disabled outputs. When sway_container is demoted, we'll need to store the root's children (ie. enabled outputs) in the sway_root. It makes sense to put these in a list called `outputs`, so I'm renaming the existing list in advance.
2018-08-24Refactor destroy functions and save workspaces when there's no outputsRyan Dwyer
This changes the destroy functions to the following: * output_begin_destroy * output_destroy * workspace_begin_destroy * workspace_destroy * container_begin_destroy * container_destroy * view_begin_destroy * view_destroy The terminology was `destroy` and `free`, and it has been changed to `begin_destroy` and `destroy` respectively. When the last output is disconnected, its workspaces will now be stashed in the root. Upon connection of a new output they will be restored. There is a new function `workspace_consider_destroy` which decides whether the given workspace should be destroyed or not (ie. empty and not visible). Calling container_begin_destroy will no longer automatically reap the parents. In some places we want to reap the parents and in some we don't, so this is left to the caller. container_reap_empty_recursive and container_reap_empty have been combined into one function and it will recurse up the tree.
2018-08-08Allow a fallback color to be specified for swaybgBrian Ashworth
This allows for a color to be set when the wallpaper does not fill the entire output. If specified, the fallback color is also used when the image path is inaccessible.
2018-07-20Reset outputs on reloadBrian Ashworth
2018-07-20Fix output wildcard handlingBrian Ashworth
2018-07-15config output: free command string if unusedIan Fan
2018-07-09Update for swaywm/wlroots#1126emersion
2018-06-06Store sway_outputs so that they can be reenabledBrian Ashworth
2018-05-13Idle handling for dpms/lockscreen et alMattias Eriksson
Swayidle handles idle events and allows for dpms and lockscreen handling. It also handles systemd sleep events, and can raise a lockscreen on sleep Fixes #541
2018-05-01Fix layer surface crash on output destroydb
Before freeing sway_output, NULL the wlr_output reference to it. Check for that NULL in layer_shell handle_destroy. Don't damage null container in unmap. Additionaly, terminate swaybg if its output is being disabled.
2018-04-04Merge branch 'wlroots' into split-containers2Tony Crisci
2018-04-03Fix wrong output container coordinatesemersion
2018-04-03unify container destroy functionsTony Crisci
2018-03-30Merge remote-tracking branch 'origin/wlroots' into swaybar-layersDrew DeVault
2018-03-29Revert "Merge pull request #1653 from swaywm/revert-1647-refactor-tree"Tony Crisci
This reverts commit 472e81f35d689d67cda241acafda91c688d61046, reversing changes made to 6b7841b11ff4cd35f54d69dc92029855893e5ce0.
2018-03-29Revert "Refactor tree"Drew DeVault
2018-03-29Add swaybg_commandDrew DeVault
2018-03-29Move bar config into its own fileDrew DeVault
2018-03-29more renaming thingsTony Crisci
2018-03-29rename container functionsTony Crisci
2018-03-28Address review feedbackDrew DeVault
2018-03-28Render layer surfaces and respect exclusive zoneDrew DeVault
2018-01-05sway: change all sway_log to wlr_logDominique Martinet
2017-12-29Allow to configure outputs by their identifieremersion
2017-12-27Refactor output command, add output enableemersion
2017-12-18Add support for fractional output scaleemersion
2017-12-14Replace refresh_rate and position by mode in output commandemersion
2017-12-13Update output containers on output layout changeemersion
2017-12-12Update output container box in event handleremersion
2017-12-12Listen to output layout changeemersion
2017-12-12Add scale and transform events to sway_outputemersion
2017-12-11Use custom modes when output has no modeemersion
2017-12-09Remove output from layoutemersion
2017-12-06Add new_output_config, update root container size on output hotplugemersion
2017-12-06Simplify free calls, use wlr_output_set_scaleemersion
2017-12-06Init, merge output config params, use wlr_output_layoutemersion
2017-12-06Add output configemersion