aboutsummaryrefslogtreecommitdiffstats
path: root/common
Commit message (Collapse)AuthorAge
* Align titles to baselineLibravatar Ryan Dwyer2018-09-08
| | | | | | | | | | | | | This does the following: * Adds a baseline argument to get_text_size (the baseline is the distance from the top of the texture to the baseline). * Stores the baseline in the container when calculating the title height. * Takes the baseline into account when calculating the config's max font height. * When rendering, pads the textures according to the baseline so they line up.
* prevent ub caused by misaligned stores/loadsLibravatar taiyu2018-09-02
|
* Allow reload command to exist anywhere in the command stringLibravatar Ryan Dwyer2018-09-01
| | | | | This fixes a crash if you have commands where reload appears in the middle or at the end, such as `bindsym r mode default, reload`.
* Remove layout.cLibravatar Ryan Dwyer2018-08-26
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Use list_find in more places and refactor/fix workspace prev_next functionsLibravatar Ryan Dwyer2018-08-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The original purpose of this commit is to replace some for loops with list_find. But while doing this I found the workspace_prev_next_impl functions to be difficult to read and also contained a bug, so I refactored them and fixed the bug. To reproduce the bug: * Have two outputs, where the left output has workspaces 1, 2, 3 and the right output has workspaces 4, 5, 6. Make workspace 2 focused_inactive and workspace 4 focused. * Run `workspace prev`. * Previously it would visit the left output, then apply `workspace prev` to workspace 2, which focuses workspace 1. * Now it will focus the rightmost workspace on the left output (workspace 3). The refactoring I made to the workspace functions are: * Added the static keyword. * They now accept an int dir rather than bool, to avoid an unnecessary conversion. * Rather than preparing start and end variables for the purpose of iterating, just iterate everything. * Replace for loops with list_find. * Don't call workspace_output_prev_next_impl (this fixes the bug).
* Implement resizing tiled containers via cursorLibravatar Ryan Dwyer2018-08-12
| | | | | | | | | * The OP_RESIZE seat operation has been renamed to OP_RESIZE_FLOATING, and OP_RESIZE_TILING has been introduced. * Similar to the above, seat_begin_resize and handle_resize_motion have been renamed and tiling variants introduced. * resize.c's resize_tiled has to be used, so container_resize_tiled has been introduced in resize.c to allow external code to call it.
* ipc-client: fix memory leaks in get_socketpathLibravatar Ian Fan2018-08-06
|
* Address review comments on parse_booleanLibravatar Brian Ashworth2018-07-23
|
* Remove unneeded constLibravatar Brian Ashworth2018-07-23
|
* Switch to using a function to parse booleansLibravatar Brian Ashworth2018-07-23
|
* Move floating windows to front when focusedLibravatar Ryan Dwyer2018-07-11
|
* Update for swaywm/wlroots#1126Libravatar emersion2018-07-09
|
* utf8_size: fix loop boundaryLibravatar Dominique Martinet2018-07-02
| | | | Found through static analysis
* get_parent_pid: fix memory leakLibravatar Dominique Martinet2018-07-02
| | | | Found through static analysis.
* Fix infinite loop in peek_line for EOF blanksLibravatar Brian Ashworth2018-06-02
|
* Address emersion's feedback on peek_lineLibravatar Brian Ashworth2018-06-02
|
* Fix condition in peek_lineLibravatar Brian Ashworth2018-06-02
|
* Address first round of review for generic blocksLibravatar Brian Ashworth2018-06-02
|
* Support braces on next line for config blocksLibravatar Brian Ashworth2018-06-02
|
* Clean up container title functionsLibravatar Ryan Dwyer2018-05-25
| | | | | | | | | | | | | * Add and use lenient_strcat and lenient_strncat functions * Rename `concatenate_child_titles` function as that's no longer what it does * Rename `container_notify_child_title_changed` because we only need to notify that the tree structure has changed, not titles * Don't notify parents when a child changes its title * Update ancestor titles when changing a container's layout * Eg. create nested tabs and change the inner container to stacking * No need to store tree presentation in both container->name and formatted_title
* Change scale from int32_t to double for pangoLibravatar Brian Ashworth2018-05-16
|
* Fix pango markupLibravatar emersion2018-05-13
| | | | | | | The condition checking if the markup is valid was inverted. This commit also adds better error handling: if the markup cannot be parsed, it fallbacks to plain text.
* Fix crash when using pango markup fontLibravatar Heghedus Razvan2018-05-13
| | | | | | The characters & < > ' " needs to be escaped when using pango markup Signed-off-by: Heghedus Razvan <heghedus.razvan@gmail.com>
* Fix gcc string truncation warningsLibravatar Dominique Martinet2018-04-13
|
* R E N D E R I N GLibravatar Drew DeVault2018-04-04
|
* Add password buffer, refactor rendering/surfacesLibravatar Drew DeVault2018-04-04
|
* Initial swaylock portLibravatar Drew DeVault2018-04-04
|
* Move swaybg background rendering into common/Libravatar Drew DeVault2018-04-04
| | | | swaylock will use it too
* Fix use-after-free with block hotspotsLibravatar Drew DeVault2018-04-02
|
* Use statically allocated text bufferLibravatar Drew DeVault2018-03-29
|
* Start port of swaybar to layer shellLibravatar Drew DeVault2018-03-29
| | | | | | This starts up the event loop and wayland display and shims out the basic top level rendering concepts. Also includes some changes to incorporate pango into the 1.x codebase properly.
* Allow sway IPC clients to fall back to i3 socketLibravatar Drew DeVault2018-03-29
|
* Address review commentsLibravatar Drew DeVault2018-03-28
|
* Add solid-color rendering to swaybgLibravatar Drew DeVault2018-03-28
|
* common/log: finish removing most log functionsLibravatar Dominique Martinet2018-01-05
| | | | | Keep sway_abort and sway_assert and convert them to use wlr_log functions
* sway: change all sway_log to wlr_logLibravatar Dominique Martinet2018-01-05
|
* build: add wlroots dependency to commonLibravatar Dominique Martinet2017-12-19
| | | | | It is required for include path if wlroots is not built in standard path, but found through pkg-config
* remove relevant CMakeLists.txtLibravatar Tony Crisci2017-11-30
|
* meson: common static libraryLibravatar Tony Crisci2017-11-30
|
* use meson subdirectoriesLibravatar Tony Crisci2017-11-30
|
* common/util: replace WLC_BIT_MOD_* by WLR_MODIFIER_*Libravatar Dominique Martinet2017-11-23
| | | | This removes the last wlc/wlc.h include actually in use
* Move everything to sway/old/Libravatar Drew DeVault2017-11-18
|
* Print log level even if STDERR is not a ttyLibravatar Calvin Lee2017-10-20
| | | | | Makes reading debug logs much easier, debug lines will start with `E`, info lines with `I` and error lines with `E`.
* FreeBSD fixesLibravatar johalun2017-06-06
| | | | | | | Increase _POSIX_SOURCE value where needed. Increase _XOPEN_SOURCE value where needed. Conditionally link to libcap (only on Linux). Possibly some trailing whitespace fixes (automatic).
* Replace spaces with tabs in resolve_pathLibravatar Mykyta Holubakha2017-05-11
|
* Fix link to dotfiles, closes #1193Libravatar Drew DeVault2017-04-26
|
* Make sway_abort() report locationLibravatar Jerzi Kaminsky2017-04-20
|
* Add resolve_path() to utilsLibravatar Jerzi Kaminsky2017-04-16
|
* Fix location reported by sway_assertLibravatar Jerzi Kaminsky2017-04-16
|
* Fix variadic forwarding in sway_assertLibravatar Jerzi Kaminsky2017-04-16
| | | | | | | | _sway_assert is a variadic function which tries to delegate to another variadic function. This requires a vprintf-style variant of the delegate. https://stackoverflow.com/a/150616