aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* Deny repeating reload by holding keyLibravatar Ryan Dwyer2018-09-04
| | | | | | | | | | | | | | | Fixes #2568 The binding that gets stored in the keyboard's `repeat_binding` would get freed on reload, leaving a dangling pointer. Rather than attempt to unset the keyboard's `repeat_binding` along with the other bindings, I opted to just not set it for the reload command because there's no point in reloading repeatedly by holding the binding. This disables repeat bindings for the reload command. As we now need to detect whether it's a reload command in two places, I've added a binding flag to track whether it's a reload or not.
* Merge pull request #2561 from RyanDwyer/window-role-criteriaLibravatar Drew DeVault2018-09-03
|\ | | | | Implement window_role criteria token
| * Implement window_role criteria tokenLibravatar Ryan Dwyer2018-09-04
|/ | | | Depends on https://github.com/swaywm/wlroots/pull/1226
* Merge pull request #2564 from ppascher/masterLibravatar Drew DeVault2018-09-03
|\ | | | | Fix window_type with disabled xwayland support
| * move criteria "instance", "class" and "window_role" inside HAVE_XWAYLAND ifdefs"Libravatar Pascal Pascher2018-09-03
| |
| * fix window_type with disabled xwayland supportLibravatar Pascal Pascher2018-09-03
| |
| * Fixed window_type with disabled xwayland support.Libravatar Pascal Pascher2018-09-03
| |
* | Merge pull request #2542 from sghctoma/fix-freebsd-buildLibravatar Drew DeVault2018-09-03
|\ \ | | | | | | FreeBSD fixes
| * | Change _XOPEN_SOURCE defines to _POSIX_C_SOURCELibravatar sghctoma2018-09-03
| | |
| * | Merge remote-tracking branch 'upstream/master' into fix-freebsd-buildLibravatar sghctoma2018-09-03
| |\|
| * | Enable privilege dropping of FreeBSDLibravatar sghctoma2018-08-30
| | | | | | | | | | | | | | | Privilege dropping works on FreeBSD too, so only the caps parts need to be Linux-only.
| * | Add missing destroy calls to server_finiLibravatar sghctoma2018-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rootston calls "wlr_xwayland_destroy" and "wl_display_destroy_clients" on shutdown, but these were not called by Sway. Without them, Sway crashes on exit before the display destroy event handler could be called. This causes two problems: - The TTY is not reset, and it locks up after exiting Sway. - drmDropMaster is not called, and the implicit drop (that should occur when the DRM fd is closed) seems not to be working in some scenarios (e.g. if you have a tmux session running - maybe the fd is retained somehow by tmux?). In other words, it you exit Sway, you can't start it (or any other program that wants to be DRM master) again until you close all your tmux sessions.
| * | Add FreeBSD-specific PAM configurationLibravatar sghctoma2018-08-30
| | | | | | | | | | | | | | | | | | | | | | | | The "login" PAM configuration means somathing entirely different on FreeBSD than on Linux: if you try to authenticate as the calling user, it OKs the request without prompting for password. The "passwd" config implements the desired functionality, therefore it should be used by swaylock.
| * | Fix SYSCONFDIR to include "prefix"Libravatar sghctoma2018-08-30
| | | | | | | | | | | | | | | | | | | | | SYSCONFDIR is used to determine the path of the default configuration file. 'sysconfdir' is set to 'prefix/sysconfdir' later (on line 139), so configuration files are installed under 'prefix', but SYSCONFDIR did not reflect it.
| * | Make libcap an optional dependencyLibravatar sghctoma2018-08-30
| | | | | | | | | | | | | | | FreeBSD does not have libcap, so without "required: false" Sway fails to build.
| * | Fix feature macros for FreeBSDLibravatar sghctoma2018-08-30
| | | | | | | | | | | | | | | On FreeBSD, snprintf and vsnprintf are visible only if _XOPEN_SOURCE >= 600.
* | | Merge pull request #2563 from taiyu-len/fix/misaligned-pointer-accessLibravatar Drew DeVault2018-09-03
|\ \ \ | | | | | | | | fix misaligned integer stores/loads
| * | | prevent ub caused by misaligned stores/loadsLibravatar taiyu2018-09-02
| | | |
* | | | Merge pull request #2565 from ianyfan/fix-splashscreen-crashLibravatar emersion2018-09-03
|\ \ \ \ | |_|_|/ |/| | | Fix crash when a splash screen opens on an empty workspace
| * | | Fix crash when a splash screen opens on an empty workspaceLibravatar Ian Fan2018-09-03
|/ / /
* | | Merge pull request #2553 from emersion/disabled-no-modesetLibravatar Brian Ashworth2018-09-03
|\ \ \ | | | | | | | | Do not modeset disabled outputs
| * \ \ Merge branch 'master' into disabled-no-modesetLibravatar Brian Ashworth2018-09-03
| |\ \ \ | |/ / / |/| | |
* | | | Merge pull request #2562 from RyanDwyer/ld-library-pathLibravatar emersion2018-09-02
|\ \ \ \ | | | | | | | | | | Add meson option for LD_LIBRARY_PATH
| * | | | Add ld-library-path meson optionLibravatar Ryan Dwyer2018-09-02
| | | | |
| * | | | Use dashes in meson option namesLibravatar Ryan Dwyer2018-09-02
| | | | |
* | | | | Merge pull request #2560 from RyanDwyer/focus-on-window-activationLibravatar emersion2018-09-02
|\ \ \ \ \ | |/ / / / |/| | | | Implement focus_on_window_activation
| * | | | Rename fowa enum and use switch in view_request_activateLibravatar Ryan Dwyer2018-09-02
| | | | |
| * | | | Implement focus_on_window_activationLibravatar Ryan Dwyer2018-09-02
|/ / / / | | | | | | | | | | | | Depends on https://github.com/swaywm/wlroots/pull/1223
* | | | Merge pull request #2559 from RyanDwyer/xwayland-check-modalLibravatar emersion2018-09-02
|\ \ \ \ | | | | | | | | | | Check modal state when determining whether an xwayland view should float
| * | | | Check modal state when determining whether an xwayland view should floatLibravatar Ryan Dwyer2018-09-02
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Depends on https://github.com/swaywm/wlroots/pull/1222. I don't know of a program that sets the state to modal without setting the window type, but I know the modal property works because logging the property shows it's true for the Firefox Open File dialog.
* | | | Merge pull request #2554 from emersion/init-dmabuf-global-in-rendererLibravatar emersion2018-09-02
|\ \ \ \ | |_|/ / |/| | | Update for swaywm/wlroots#1216
| * | | Update for swaywm/wlroots#1216Libravatar emersion2018-09-01
| | | |
* | | | Merge pull request #2544 from RyanDwyer/fix-deferred-cmd-crashLibravatar Drew DeVault2018-09-01
|\ \ \ \ | |/ / / |/| | | Fix crash when running deferred commands
| * | | Fix crash when running deferred commandsLibravatar Ryan Dwyer2018-08-31
| | |/ | |/| | | | | | | Fixes #2541
| | * Do not modeset disabled outputsLibravatar emersion2018-09-01
| |/ |/|
* | Merge pull request #2547 from RyanDwyer/fix-reload-crashLibravatar Drew DeVault2018-09-01
|\ \ | | | | | | Fix crash on reload
| * | 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`.
| * | Fix crash on reloadLibravatar Ryan Dwyer2018-09-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If sway is reloaded using a bindsym which has multiple commands, it failed to detect the reload command, didn't create a duplicate of the binding and would crash because the reload command frees the bindings. For example: mode system { bindsym r reload, mode default } In this example, the binding->command is "reload, mode default". Fixes #2545
* | | Merge pull request #2549 from RyanDwyer/border-improvementsLibravatar Drew DeVault2018-09-01
|\ \ \ | | | | | | | | Implement deprecated new_window and new_float commands
| * | | Implement deprecated new_window and new_float commandsLibravatar Ryan Dwyer2018-09-01
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | May as well make it as easy as possible for users who are coming from i3. This also changes the `border` command to accept a thickness when setting the border to normal. This makes it work the same way as the `default_border` command. Eg. `border normal 5`
* | | Merge pull request #2550 from RyanDwyer/window-type-criteriaLibravatar Drew DeVault2018-09-01
|\ \ \ | |/ / |/| | Implement window_type criteria token
| * | Implement window_type criteria tokenLibravatar Ryan Dwyer2018-09-01
|/ /
* | Merge pull request #2546 from RyanDwyer/fix-transaction-spammingLibravatar emersion2018-08-31
|\ \ | |/ |/| Don't send never-ending transactions when a focused layer surface commits
| * Don't send never-ending transactions when a focused layer surface commitsLibravatar Ryan Dwyer2018-08-31
|/ | | | | | | | | | | This moves the arrange_windows call into the arrange_layers function, where we know the output actually needs to be arranged. Additionally, we shouldn't set focus to the parent of an unknown container type, because the parent may be an output and this causes a crash because outputs can't have direct focus. Fixes #2543
* Merge pull request #2537 from ianyfan/commandsLibravatar Drew DeVault2018-08-29
|\ | | | | commands: fix exec quoting
| * commands: fix exec quotingLibravatar Ian Fan2018-08-29
| |
* | Merge pull request #2531 from RyanDwyer/maybe-fix-transaction-crashLibravatar Drew DeVault2018-08-29
|\ \ | |/ |/| Don't use bitfield to test for similar transactions
| * Don't use bitfield to test for similar transactionsLibravatar Ryan Dwyer2018-08-29
| | | | | | | | | | | | | | | | | | | | | | | | When there's multiple transactions in the queue, sway can take a shortcut by checking if they all operate on the same set of containers. If they do, it can skip all but the last transaction. The way we tested for transactions which used the same containers was to exclusive-or their con IDs together, but this has proved not only to be ineffective but also has the potential to make sway crash. This patch replaces the exclusive-or with a loop and container comparison.
* | Merge pull request #2536 from RyanDwyer/fix-nested-tabsLibravatar Brian Ashworth2018-08-29
|\ \ | | | | | | Fix rendering of nested tabs
| * | Fix rendering of nested tabsLibravatar Ryan Dwyer2018-08-29
|/ / | | | | | | The C_CONTAINER check needs to apply to C_VIEW as well.