aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-09-25Merge pull request #2712 from alexbakker/fix-crashBrian Ashworth
Add a missing null check for moving tiling containers
2018-09-25Add a missing null check for moving tiling containersAlexander Bakker
2018-09-25Merge pull request #2708 from RyanDwyer/fix-output-disconnect-crashemersion
Fix crash when disconnecting output
2018-09-25Fix crash when disconnecting outputRyan Dwyer
If the output being disconnected contains views, and the views are being relocated to another output of a different size, a transaction must occur to reconfigure them. This means by the time container_discover_outputs is called, the output is already disabled and wlr_output is NULL. I considered making it check output->wlr_output, but output->enabled should work just as well and is more descriptive.
2018-09-24Merge pull request #2701 from RedSoxFan/input-wildcardemersion
Implement support for input wildcard
2018-09-23Implement support for input wildcardBrian Ashworth
2018-09-23Merge pull request #2699 from RedSoxFan/fix-2667emersion
swaybg: fix increasingly smaller bg on hotplug
2018-09-23swaybg: fix increasingly smaller bg on hotplugBrian Ashworth
render_background_image alters the scale that cairo uses. Depending on the image mode, resolution, and image size, this may cause the surface to be rendered increasingly smaller. By calling cairo_save and cairo_restore, any changes to the cairo settings by the function are not kept as a side effect. The surface that swaybg uses is also now cleared before rendering a frame. This is needed to avoid artifacts on resolution or scale changes with certain combinations of image modes, resolutions, and image sizes. This was also part of the increasingly smaller background visual since it made it so it was not obvious the region being rendered to was smaller and caused an increasing number of smaller images to be appear for each hotplug.
2018-09-23Merge pull request #2696 from RyanDwyer/fix-gtkmenubarDrew DeVault
Fix GtkMenuBar always opening first item
2018-09-23Fix GtkMenuBar always opening first itemRyan Dwyer
It seems like advertising that we support touch when we don't, while using SSD, makes GtkMenuBar misbehave. Please don't ask me why...
2018-09-23Merge pull request #2695 from RyanDwyer/remove-moveoutoftabsstacksDrew DeVault
Remove move_out_of_tabs_stacks
2018-09-23Merge pull request #2694 from RyanDwyer/fix-sticky-jumping-on-switchemersion
Prevent sticky containers from jumping on workspace switch
2018-09-23Merge pull request #2686 from RyanDwyer/tab-scrollingemersion
Implement tab cycling using mouse wheel
2018-09-23Flatten container in workspace_rejiggerRyan Dwyer
2018-09-23Fix some bugs as a result of removing move_out_of_tabs_stacksRyan Dwyer
2018-09-23Remove move_out_of_tabs_stacksRyan Dwyer
This fixes the following. Create these layouts and run move right: (Initial layout -> expected result -> actual result) * `H[S[unfocused focused] unfocused]` -> `H[S[unfocused] focused unfocused]` -> `H[H[S[unfocused] focused] unfocused]` * `H[S[unfocused focused] V[unfocused]]` -> `H[S[unfocused] V[unfocused focused]]` -> `H[H[S[unfocused] focused] V[unfocused]]` move_out_of_tabs_stacks was originally made to allow views to move out of the tabbed/stacked container in the parallel direction, but at some point this has started working using the regular logic.
2018-09-23Prevent sticky containers from jumping on workspace switchRyan Dwyer
If you have swaybar docked to the top, and you create a floating sticky container and switch workspaces on the same output, the sticky container would move down by the height of swaybar on each switch. This happens because when creating the workspace we set the dimensions to the same as the output, then the subsequent arrange corrects it. During this arrange, floating containers are translated so they stay relative to the workspace. This translation needs to not occur for the initial arrange. This patch makes workspaces have a zero width and height when first created, so we can detect whether this is the initial arrange and avoid translating the floating containers if so.
2018-09-22Merge pull request #2688 from RyanDwyer/exec-commands-without-focusDrew DeVault
Allow running commands on containers without focusing them
2018-09-23Merge pull request #2690 from ianyfan/commandsRyan Dwyer
commands: remove obselete code for sticky windows when switching workspace
2018-09-23Merge branch 'master' into commandsRyan Dwyer
2018-09-22Remove contrib/awesome.configDrew DeVault
We deprecated the stuff necessary to make this work.
2018-09-22Merge pull request #2691 from ggreer/pango-font-optionsDrew DeVault
Call pango_cairo_context_set_font_options().
2018-09-23Allow running commands on containers without focusing themRyan Dwyer
This adds a `con` argument to `execute_command` which allows you to specify the container to execute the command on. In most cases it leaves it as `NULL` which makes it use the focused node. We only set it when executing `for_window` criteria such as when a view maps. This means we don't send unnecessary IPC focus events, and fixes a crash when the criteria command is `move scratchpad` (because we can't give focus to a hidden scratchpad container). Each of the shell map handlers now check to see if the view has a workspace. It won't have a workspace if criteria has moved it to the scratchpad.
2018-09-22Call pango_cairo_context_set_font_options().Geoff Greer
Call pango_cairo_context_set_font_options() before pango_cairo_update_layout() and pango_cairo_show_layout(). By default, Pango "merges" the Cario font options with its own, which doesn't enable full hinting.
2018-09-22commands: remove obselete code for sticky windows when switching workspaceIan Fan
2018-09-22Merge pull request #2677 from ggreer/pretty-fontsDrew DeVault
Render fonts slightly nicer
2018-09-22swaybar, swaylock, & tree/container: Set cairo font options to render text ↵Geoff Greer
and lines with subpixel hinting (if available).
2018-09-22Merge pull request #2660 from RyanDwyer/fix-scratchpad-iterationemersion
Fix double iteration of scratchpad containers
2018-09-22Merge pull request #2687 from ianyfan/swaybarRyan Dwyer
swaybar: explicitly check return value of getdelim
2018-09-22swaybar: explicitly check return value of getdelimIan Fan
This prevents an signed-to-unsigned conversion error on buffer_index if getdelim fails and returns -1, which caused swaybar to try to search the header for the array and immediately failing
2018-09-22Merge pull request #2679 from RyanDwyer/fix-pango-escapingemersion
Fix pango escaping and refactor escape_markup_text
2018-09-22Use pango_layout_set_text instead of pango_layout_set_markupRyan Dwyer
2018-09-22Fix pango escaping and refactor escape_markup_textRyan Dwyer
Fixes #2674. The cause of the issue was in get_pango_layout. When we call pango_parse_markup, `text` is the escaped string, and the unescaped string is then computed and written to `buf`. We were then passing the unescaped string to pango_layout_set_markup, but this function needs the escaped string. `buf` is not needed and has been removed. The other part of this PR refactors escape_markup_text to remove the dest_length argument and removes the -1 return value on error. It now assumes that you've allocated dest to the correct length.
2018-09-22Merge pull request #2678 from RyanDwyer/reconfigure-on-repositionemersion
Reconfigure xwayland views when repositioned
2018-09-22Implement tab cycling using mouse wheelRyan Dwyer
Firstly, a change had to be made to the container_at functions. If you create layout `T[view H[view view]]` and hover the second tab, the container_at functions would return the focus_inactive child. They now return the split container itself. To compensate for this, dispatch_cursor_button has been adjusted to find the focus_inactive child before focusing it. The actual implementation of wheel scrolling is pretty straightforward. This uses handle_cursor_axis, so I took a similar approach to handle_cursor_button (ie. creating a dispatch_cursor_axis function).
2018-09-21Merge pull request #2666 from emersion/swaybar-hotplugBrian Ashworth
swaybar: handle hotplugging
2018-09-21Merge branch 'master' into swaybar-hotplugBrian Ashworth
2018-09-21Merge pull request #2672 from ianyfan/swaybarDrew DeVault
swaybar: fix parsing errors when json is sent in parts
2018-09-21Merge pull request #2683 from ammgws/patch-1Drew DeVault
stabilityに関する注記を更新
2018-09-21stabilityに関する注記を更新Jason
2018-09-21swaybar: log invalid i3bar jsonIan Fan
2018-09-21swaybar: reset tokener if json is incompleteIan Fan
If the tokener parses incomplete json, it sets its error value to json_tokener_continue. This means that extra json should be provided, but the code was providing the entire object again. In the interest of simplicity, the tokener is reset so that buffer_pos always points to the start of the current object.
2018-09-21swaybar: update buffer_pos when moving object to start of bufferIan Fan
2018-09-21Reconfigure xwayland views when repositionedRyan Dwyer
Fixes #2673.
2018-09-21Update stability notice in READMEDrew DeVault
2018-09-21Merge pull request #2680 from marienz/no-x11-backendemersion
Fix compilation against wlroots without X11 backend
2018-09-21Fix compilation against wlroots without X11 backendMarien Zwart
2018-09-21Merge pull request #2665 from emersion/render-output-segfaultRyan Dwyer
Fix segfault in output_render
2018-09-21Merge branch 'master' into render-output-segfaultRyan Dwyer
2018-09-20swaybar: don't wl_display_roundtrip on each frameemersion
This was the source of numerous bugs, from hotplug events not being received to segfaults because wl_display_roundtrip was making the bar process unplug events while blocking in an iteration over all outputs.