aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-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.
2018-09-20swaybar: handle hotpluggingemersion
Don't kill and respawn swaybars on hotplug.
2018-09-20Merge pull request #2671 from emersion/output-execute-no-focusemersion
Fix segfault when executing command without focus
2018-09-19Merge pull request #2676 from ianyfan/ipcDrew DeVault
ipc: add pid information for views in layout tree
2018-09-19ipc: add pid information for views in layout treeIan Fan
2018-09-19Fix segfault when executing command without focusemersion
2018-09-19Merge pull request #2669 from RyanDwyer/create-output-commandDrew DeVault
Introduce create_output command (for developer use)
2018-09-19Merge branch 'master' into create-output-commandemersion
2018-09-19Merge pull request #2670 from ianyfan/commandsDrew DeVault
config: free strings fields when freeing input config
2018-09-19config: free strings fields when freeing input configIan Fan
2018-09-19Introduce create_output command (for developer use)Ryan Dwyer
Should help with testing hotplugging.
2018-09-19Fix segfault in output_renderemersion
2018-09-18Merge pull request #2640 from ianyfan/swaybarDrew DeVault
Overhaul swaybar protocol handling (+fixes)
2018-09-18swaybar: only free tokener when using i3bar protocolIan Fan
2018-09-18swaybar: add debugging statements for handling i3bar jsonIan Fan
2018-09-18swaybar: rewrite i3bar protocol handlingIan Fan
This now correctly handles an incoming json infinite array by shifting most of the heavy listing to the json-c parser, as well as sending multiple statuses at once. It also removes the struct i3bar_protocol_state and moves its members into the status_line struct, allowing the same buffer to be used for both protocols.
2018-09-18swaybar: rewrite protocol determinationIan Fan
This now uses the getline function to receive the header, replacing read_line_buffer, which has been deleted since it is otherwise unused. Furthermore, once the protocol has been determined, the current status is handled immediately to be shown (though this has not been added for the i3bar protocol since it has not yet been rewritten to handle this).
2018-09-18swaybar: rewrite text protocol handlingIan Fan
This now uses getline to correctly handle multiple or long statuses. It also removes the struct text_protocol_state and moves its members into the status_line struct.
2018-09-18swaybar: only create i3bar block hotspot if click events are enabledIan Fan
2018-09-18swaybar: send trailing comma with click event jsonIan Fan
2018-09-18swaybar: fix empty function prototypesIan Fan
2018-09-18swaybar: invalidate file descriptors upon closingIan Fan
2018-09-18swaybar: remove block links upon exitIan Fan
2018-09-17Merge pull request #2652 from emersion/swaybar-output-namesBrian Ashworth
swaybar: use output names instead of output indexes
2018-09-17swaybar: use output names instead of output indexesemersion
2018-09-17Merge pull request #2649 from wmww/fix-move-crashemersion
Fix crash moving out of tab container
2018-09-17Fix crash moving out of tab containerWilliam Wold
2018-09-16Merge pull request #2637 from RyanDwyer/fix-tabbed-workspace-shenanigansDrew DeVault
Make seat_get_active_child ignore floating children
2018-09-16Merge pull request #2641 from marienz/inhibit-crashDrew DeVault
Fix crash when an idle-inhibiting client exits
2018-09-16Fix crash when destroying an idle-inhibiting clientMarien Zwart
When destroying an idle-inhibiting client, idle_inhibit_v1_check_active can get called from transaction_progress_queue on a view with a null container. view_is_visible does not handle a view in this state.
2018-09-16Rename seat_get_active_child to seat_get_active_tiling_childRyan Dwyer
Also renames container to con in one function to prevent ugly line wrapping.
2018-09-16Make seat_get_active_child ignore floating childrenRyan Dwyer
seat_get_active_child is used to get the active tiling child in a few places, such as outputs getting their active workspace and tabbed/stacked containers getting their visible child. When a workspace uses a tabbed or stacked layout and contains a focused floating view, calling seat_get_active_child on the workspace would incorrectly return the floating view. This changes it so it will return the tiling child. This fixes the following bug: * Create layout T[view view] then float one of the views * Attempt to click the tiling view to give it focus - it wouldn't work because seat_get_active_child would return the floating view