aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-08-02Merge pull request #2406 from RyanDwyer/fix-focus-crashesDrew DeVault
Fix focus related crashes
2018-08-02Merge pull request #2405 from marienz/sigmaskemersion
Reset signal mask after fork
2018-08-02Fix focus related crashesRyan Dwyer
* seat_set_focus_warp lacked a container NULL check * view mapping code needs to use seat_get_focus_inactive Also, seat_set_focus_warp triggered the wrong IPC event if focus was a workspace, which resulted in swaybar not showing the workspace as active.
2018-08-02Reset signal mask after forkMarien Zwart
wlroots uses wl_event_loop_add_signal to handle SIGUSR1 from Xwayland. wl_event_loop_add_signal works by masking the signal and receiving it from a signalfd. The signal mask is preserved across fork and exec, so subprocesses spawned by Sway start with SIGUSR1 masked. Most subprocesses do not expect this and never unmask the signal, resulting in missing functionality or unexpected behavior for processes that use SIGUSR1 (such as i3status). Fix this by unmasking all signals between fork and exec.
2018-08-02Link xcb dependency to meson options "enable_xwayland" (#2393)Michel Ganguin
* Link xcb dependency to meson options "enable_xwayland" * Link xcb dependency to meson options "enable_xwayland"
2018-08-02Merge pull request #2396 from RyanDwyer/fix-resize-wiggleemersion
Correctly track saved surfaces during multiple transactions
2018-08-02Merge branch 'master' into fix-resize-wiggleemersion
2018-08-01Merge pull request #2391 from RyanDwyer/fix-popups-v2Drew DeVault
Fix popups (v2)
2018-08-02Merge pull request #2264 from ianyfan/ipcRyan Dwyer
IPC Events (1.0)
2018-08-01ipc: remove extraneous valuesIan Fan
Removes IPC_EVENT_MODIFIER and IPC_EVENT_INPUT, which were sway-specific and unused
2018-08-01ipc: prevent emitting a workspace::focus event when moving a container to a ↵Ian Fan
different workspace or output When a container is moved from, say, workspace 1 to workspace 2, workspace 2 is focused in order to arrange the windows before focus is moved back to workspace 1, which caused a workspace:focus event from workspace 2 to workspace 1 to be emitted. This commit inhibits that event.
2018-08-01ipc: fix workspace::focus event behaviourIan Fan
2018-08-01ipc: add tick eventIan Fan
2018-08-01Add missing swaymsg completionsIan Fan
2018-08-01ipc: always include old property in workspace eventsIan Fan
2018-08-01ipc: add workspace::reload eventIan Fan
2018-08-01ipc: add binding eventIan Fan
2018-08-01ipc: add window::move eventsIan Fan
2018-08-01ipc: fix workspace::move calls argument orderIan Fan
2018-08-01ipc: only emit window::create event for viewsIan Fan
2018-08-01ipc: add window::mark eventIan Fan
2018-08-01ipc: add barconfig_update event on config reloadIan Fan
2018-08-01ipc: add workspace::empty eventIan Fan
2018-08-01ipc: add window::title eventIan Fan
2018-08-01ipc: add window::focus eventIan Fan
2018-08-01ipc: add window::close eventIan Fan
2018-08-01ipc: add workspace::init eventIan Fan
2018-08-01ipc: add shutdown eventIan Fan
2018-08-01Merge pull request #2397 from chr0me-sh/hide-cursor-if-no-pointerDrew DeVault
XCursor is not configured if no pointer device is available
2018-08-01XCursor is not configured if no pointer device is availablechr0me
2018-08-01Correctly track saved surfaces during multiple transactionsRyan Dwyer
Fixes #2364. Suppose a view is 600px wide, and we tell it to resize to 601px during a resize operation. We create a transaction, save the 600px buffer and send the configure. This buffer is saved into the associated instruction, and is rendered while we wait for the view to commit a 601px buffer. Before the view commits the 601px buffer, suppose we tell it to resize to 602px. The new transaction will also save the buffer, but it's still the 600px buffer because we haven't received a new one yet. Then suppose the view commits its original 601px buffer. This completes the first transaction, so we apply the 601px width to the container. There's still the second (now only) transaction remaining, so we render the saved buffer from that. But this is still the 600px buffer, and we believe it's 601px. Whoops. The problem here is we can't stack buffers like this. So this commit removes the saved buffer from the instructions, places it in the view instead, and re-saves the latest buffer every time the view completes a transaction and still has further pending transactions. As saved buffers are now specific to views rather than instructions, the functions for saving and removing the saved buffer have been moved to view.c. The calls to save and restore the buffer have been relocated to more appropriate functions too, favouring transaction_commit and transaction_apply rather than transaction_add_container and transaction_destroy.
2018-08-01Merge pull request #2395 from RedSoxFan/create-mouse-binding-listRyan Dwyer
Create list for mouse bindings when creating new mode
2018-07-31Create list for mouse binds when creating new modeBrian Ashworth
2018-07-31Close popups when changing focusRyan Dwyer
Also reverts the send frame done changes from the previous commit.
2018-07-31Fix popupsRyan Dwyer
Fixes the render and container_at order for popups. Fixes #2210 For rendering: * render_view_surfaces has been renamed to render_view_toplevels * render_view_toplevels now uses output_surface_for_each_surface (which is now public), as that function uses wlr_surface_for_each_surface which doesn't descend into popups * Views now have a for_each_popup iterator, which is used by the renderer to render the focused view's popups * When rendering a popup, toplevels (xdg subsurfaces) of that popup are also rendered For sending frame done, the logic has been updated to match the rendering logic: * send_frame_done_container no longer descends into popups * for_each_popup is used to send frame done to the focused view's popups and their child toplevels For container_at: * floating_container_at is now static, which means it had to be moved higher in the file. * container_at now considers popups for the focused view before checking containers. * tiling_container_at has been introduced, so that it doesn't call container_at recursively (it would check popups recursively if it did)
2018-07-30Merge pull request #2390 from emersion/fix-fullscreen-segfaultDrew DeVault
Fix segfault with fullscreen
2018-07-30Fix segfault with fullscreenemersion
2018-07-30Merge pull request #2367 from emersion/iterator-redesignDrew DeVault
Refactor surface iterators
2018-07-30Merge pull request #2387 from 1ace/feature/bash-completionDrew DeVault
bash completion
2018-07-30Merge pull request #2381 from frsfnrrg/key-repeatDrew DeVault
Implement key repeat for keybindings
2018-07-30Merge pull request #2388 from 1ace/fix/delete-swaygrabemersion
delete references to swaygrab
2018-07-30delete references to swaygrabEric Engestrom
2018-07-30Merge pull request #2385 from 1ace/fix/includeemersion
util.h: add missing include
2018-07-30meson: install bash completionEric Engestrom
2018-07-30bash: add completion for swayidleEric Engestrom
2018-07-30bash: add completion for swaylockEric Engestrom
2018-07-30bash: add completion for swaymsgEric Engestrom
2018-07-30bash: add completion for swayEric Engestrom
2018-07-30Merge pull request #2384 from 1ace/fix/zsh-completionemersion
zsh: fix sway completion
2018-07-30zsh: fix sway completionEric Engestrom