aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorLines
2018-09-05Merge pull request #2574 from ammgws/block-bg-fixemersion-1/+1
Fix swaybar block background fill logic
2018-09-05Fix swaybar block background fill logicJason-1/+1
Same as #2571 but for 1.0.
2018-09-04Merge pull request #2569 from RyanDwyer/deny-reload-repeatDrew DeVault-9/+14
Deny repeating reload by holding key
2018-09-04Deny repeating reload by holding keyRyan Dwyer-9/+14
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.
2018-09-03Merge pull request #2561 from RyanDwyer/window-role-criteriaDrew DeVault-7/+28
Implement window_role criteria token
2018-09-04Implement window_role criteria tokenRyan Dwyer-7/+28
Depends on https://github.com/swaywm/wlroots/pull/1226
2018-09-03Merge pull request #2564 from ppascher/masterDrew DeVault-58/+64
Fix window_type with disabled xwayland support
2018-09-03Merge pull request #2542 from sghctoma/fix-freebsd-buildDrew DeVault-14/+35
FreeBSD fixes
2018-09-03Merge pull request #2563 from taiyu-len/fix/misaligned-pointer-accessDrew DeVault-8/+8
fix misaligned integer stores/loads
2018-09-03Merge pull request #2565 from ianyfan/fix-splashscreen-crashemersion-1/+2
Fix crash when a splash screen opens on an empty workspace
2018-09-03Fix crash when a splash screen opens on an empty workspaceIan Fan-1/+2
2018-09-03move criteria "instance", "class" and "window_role" inside HAVE_XWAYLAND ifdefs"Pascal Pascher-53/+53
2018-09-03fix window_type with disabled xwayland supportPascal Pascher-1/+1
2018-09-03Fixed window_type with disabled xwayland support.Pascal Pascher-10/+16
2018-09-03Change _XOPEN_SOURCE defines to _POSIX_C_SOURCEsghctoma-6/+6
2018-09-03Merge remote-tracking branch 'upstream/master' into fix-freebsd-buildsghctoma-34/+173
2018-09-03Merge pull request #2553 from emersion/disabled-no-modesetBrian Ashworth-6/+4
Do not modeset disabled outputs
2018-09-03Merge branch 'master' into disabled-no-modesetBrian Ashworth-14/+103
2018-09-02prevent ub caused by misaligned stores/loadstaiyu-8/+8
2018-09-02Merge pull request #2562 from RyanDwyer/ld-library-pathemersion-10/+13
Add meson option for LD_LIBRARY_PATH
2018-09-02Merge pull request #2560 from RyanDwyer/focus-on-window-activationemersion-0/+86
Implement focus_on_window_activation
2018-09-02Add ld-library-path meson optionRyan Dwyer-0/+3
2018-09-02Use dashes in meson option namesRyan Dwyer-10/+10
2018-09-02Rename fowa enum and use switch in view_request_activateRyan Dwyer-19/+19
2018-09-02Implement focus_on_window_activationRyan Dwyer-0/+86
Depends on https://github.com/swaywm/wlroots/pull/1223
2018-09-02Merge pull request #2559 from RyanDwyer/xwayland-check-modalemersion-1/+3
Check modal state when determining whether an xwayland view should float
2018-09-02Check modal state when determining whether an xwayland view should floatRyan Dwyer-1/+3
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.
2018-09-02Merge pull request #2554 from emersion/init-dmabuf-global-in-rendereremersion-2/+0
Update for swaywm/wlroots#1216
2018-09-01Update for swaywm/wlroots#1216emersion-2/+0
2018-09-01Merge pull request #2544 from RyanDwyer/fix-deferred-cmd-crashDrew DeVault-1/+1
Fix crash when running deferred commands
2018-09-01Do not modeset disabled outputsemersion-6/+4
2018-09-01Merge pull request #2547 from RyanDwyer/fix-reload-crashDrew DeVault-1/+17
Fix crash on reload
2018-09-01Merge pull request #2549 from RyanDwyer/border-improvementsDrew DeVault-3/+5
Implement deprecated new_window and new_float commands
2018-09-01Merge pull request #2550 from RyanDwyer/window-type-criteriaDrew DeVault-7/+42
Implement window_type criteria token
2018-09-01Implement window_type criteria tokenRyan Dwyer-7/+42
2018-09-01Implement deprecated new_window and new_float commandsRyan Dwyer-3/+5
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`
2018-09-01Allow reload command to exist anywhere in the command stringRyan Dwyer-1/+17
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`.
2018-09-01Fix crash on reloadRyan Dwyer-1/+1
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
2018-08-31Merge pull request #2546 from RyanDwyer/fix-transaction-spammingemersion-3/+2
Don't send never-ending transactions when a focused layer surface commits
2018-08-31Don't send never-ending transactions when a focused layer surface commitsRyan Dwyer-3/+2
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
2018-08-31Fix crash when running deferred commandsRyan Dwyer-1/+1
Fixes #2541
2018-08-30Enable privilege dropping of FreeBSDsghctoma-2/+4
Privilege dropping works on FreeBSD too, so only the caps parts need to be Linux-only.
2018-08-30Add missing destroy calls to server_finisghctoma-0/+4
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.
2018-08-30Add FreeBSD-specific PAM configurationsghctoma-4/+19
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.
2018-08-30Fix SYSCONFDIR to include "prefix"sghctoma-1/+1
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.
2018-08-30Make libcap an optional dependencysghctoma-1/+1
FreeBSD does not have libcap, so without "required: false" Sway fails to build.
2018-08-30Fix feature macros for FreeBSDsghctoma-6/+6
On FreeBSD, snprintf and vsnprintf are visible only if _XOPEN_SOURCE >= 600.
2018-08-29Merge pull request #2537 from ianyfan/commandsDrew DeVault-9/+4
commands: fix exec quoting
2018-08-29Merge pull request #2531 from RyanDwyer/maybe-fix-transaction-crashDrew DeVault-3/+17
Don't use bitfield to test for similar transactions
2018-08-29commands: fix exec quotingIan Fan-9/+4