summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* Reorganize Tray CodeLibravatar Calvin Lee2017-06-07
| | | | Remove tray code from bar.c and render.c
* Fix cairo blending on tray iconsLibravatar Drew DeVault2017-06-07
|
* Implement Tray IconsLibravatar Calvin Lee2017-06-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit implements the StatusNotifierItem protocol, and enables swaybar to show tray icons. It also uses `xembedsniproxy` in order to communicate with xembed applications. The tray is completely optional, and can be disabled on compile time with the `enable-tray` option. Or on runtime with the bar config option `tray_output none`. Overview of changes: In swaybar very little is changed outside the tray subfolder except that all events are now polled in `event_loop.c`, this creates no functional difference. Six bar configuration options were added, these are detailed in sway-bar(5) The tray subfolder is where all protocol implementation takes place and is organised as follows: tray/sni_watcher.c: This file contains the StatusNotifierWatcher. It keeps track of items and hosts and reports when they come or go. tray/tray.c This file contains the StatusNotifierHost. It keeps track of sway's version of the items and represents the tray itself. tray/sni.c This file contains the StatusNotifierItem struct and all communication with individual items. tray/icon.c This file implements the icon theme protocol. It allows for finding icons by name, rather than by pixmap. tray/dbus.c This file allows for asynchronous DBus communication. See #986 #343
* Merge pull request #1232 from johalun/master-freebsdLibravatar Drew DeVault2017-06-06
|\ | | | | FreeBSD fixes
| * FreeBSD fixesLibravatar johalun2017-06-06
|/ | | | | | | Increase _POSIX_SOURCE value where needed. Increase _XOPEN_SOURCE value where needed. Conditionally link to libcap (only on Linux). Possibly some trailing whitespace fixes (automatic).
* Revert "Drop epoll dependency"Libravatar Drew DeVault2017-05-17
| | | | This reverts commit 91f2bf81bf89699d43083f3d3a27805ba5e395a9.
* Drop epoll dependencyLibravatar Drew DeVault2017-05-17
|
* Merge pull request #1218 from Hummer12007/suicapsLibravatar Drew DeVault2017-05-11
|\ | | | | Terminate when both suid bit and filecaps are set
| * Replace spaces with tabs in resolve_pathLibravatar Mykyta Holubakha2017-05-11
| |
| * Terminate when both suid bit and filecaps are setLibravatar Mykyta Holubakha2017-05-11
| |
| * Initialise logging earlierLibravatar Mykyta Holubakha2017-05-11
| |
* | Mention Patreon in README.mdLibravatar Drew DeVault2017-05-11
|/ | | | Does this make me a sellout
* Merge pull request #1211 from wdbw/missing-send-eventLibravatar Drew DeVault2017-05-06
|\ | | | | Add missing send-event mode to sway-input(5)
| * Add missing send-event mode to sway-input(5)Libravatar wdbw2017-05-06
|/ | | Also, fix a small typo.
* Merge pull request #1209 from janza/mouse-bindingsLibravatar Drew DeVault2017-05-04
|\ | | | | Add mouse button bindings
| * Add mouse button bindingsLibravatar Josip Janzic2017-05-04
|/ | | | | | | Adds support for bindings like: bindsym button3 floating toggle bindsym $mod+button3 floating toggle
* Merge pull request #1206 from zandrmartin/document-font-commandLibravatar Drew DeVault2017-05-01
|\ | | | | document font command
| * document font commandLibravatar Zandr Martin2017-05-01
|/
* Update config.inLibravatar Drew DeVault2017-04-30
| | | | | swaymsg -t get_inputs now pretty prints its output, so this warning is obsolete
* Merge pull request #1204 from zandrmartin/prevent-layout-auto-crashLibravatar Drew DeVault2017-04-29
|\ | | | | prevent crash when `layout auto` is missing args
| * prevent crash when `layout auto` is missing argsLibravatar Zandr Martin2017-04-29
|/
* Add HACKING.mdLibravatar Drew DeVault2017-04-29
|
* Set child border to background if not specifiedLibravatar Drew DeVault2017-04-29
|
* Merge pull request #1201 from SirCmpwn/fix-colorsLibravatar Drew DeVault2017-04-29
|\ | | | | Support specifying fewer than 5 colors
| * Support specifying fewer than 5 colorsLibravatar Drew DeVault2017-04-29
|/ | | | | This doesn't work, I'm not sure why. The color structs definitely get changed but if you specify fewer than 5, it renders with the defaults.
* Update .build.ymlLibravatar Drew DeVault2017-04-26
|
* Merge pull request #1196 from SirCmpwn/no_focusLibravatar Drew DeVault2017-04-26
|\ | | | | Implement no_focus
| * Fix handling of floating windowsLibravatar Drew DeVault2017-04-26
| |
| * Update sway(5)Libravatar Drew DeVault2017-04-26
| |
| * Implement no_focusLibravatar Drew DeVault2017-04-26
|/ | | | Ref #2
* Merge pull request #1194 from snoack/versionLibravatar Drew DeVault2017-04-26
|\ | | | | Add -DVERSION flag for release version numbers
| * Add -DVERSION flag for release version numbersLibravatar Sebastian Noack2017-04-26
| |
* | Fix link to dotfiles, closes #1193Libravatar Drew DeVault2017-04-26
|/
* Merge pull request #1187 from 4e554c4c/masterLibravatar Drew DeVault2017-04-24
|\ | | | | Fix typo in sway(5)
| * Fix typo in sway(5)Libravatar Calvin Lee2017-04-23
|/
* Merge pull request #1184 from JerziKaminsky/logging2Libravatar Drew DeVault2017-04-20
|\ | | | | More Logging Fixes
| * Merge branch 'master' into logging2Libravatar Drew DeVault2017-04-20
| |\ | |/ |/|
* | Merge pull request #1183 from sleep-walker/masterLibravatar Drew DeVault2017-04-19
|\ \ | | | | | | explicitly ignore unused return value
| | * Make sway_abort() report locationLibravatar Jerzi Kaminsky2017-04-20
| |/
| * explicitly ignore unused return valueLibravatar Tomáš Čech2017-04-19
|/ | | | fixes issue#1182
* Merge pull request #1181 from wasamasa/bugfix-initial-scratchpad-size0.13-rc1Libravatar Drew DeVault2017-04-18
|\ | | | | Use i3's dimensions for initial scratchpad views
| * Use i3's dimensions for initial scratchpad viewsLibravatar Vasilij Schneidermann2017-04-18
| | | | | | | | See https://github.com/i3/i3/blob/master/src/scratchpad.c#L196-L197
* | Merge pull request #1178 from 4e554c4c/forkLibravatar Drew DeVault2017-04-18
|\ \ | |/ |/| Prevent sway from duplicating on a failed fork
| * Prevent sway from duplicating on a failed forkLibravatar Calvin Lee2017-04-18
| | | | | | | | Also remove a useless `sway_log` and replace it with a pipe
* | Merge pull request #1180 from wasamasa/feature-move-to-scratchpadLibravatar Drew DeVault2017-04-18
|\ \ | | | | | | Feature move to scratchpad
| * | Implement and document `move [to] scratchpad`Libravatar Vasilij Schneidermann2017-04-18
|/ /
* / Add .build.yml (for builds.sr.ht)Libravatar Drew DeVault2017-04-18
|/
* Merge pull request #1173 from JerziKaminsky/security_resolve_symlinkLibravatar Drew DeVault2017-04-16
|\ | | | | FOR_REVIEW: IPC security - Allow policy targets to be symlinks
| * Handle symlinks as IPC security targetsLibravatar Jerzi Kaminsky2017-04-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - When policies are allocated, the ipc target path goes through symlink resolution. The result is used as the canonical for matching pids to policies at runtime. In particular, this matches up with the target of the `/proc/<pid>/exe`. - There's a possible race condition if this isn't done correctly, read below. Originally, validate_ipc_target() always tried to resolve its argument for symlinks, and returned a parogram target string if it validates. This created a possible race condition with security implications. The problem is that get_feature_policy() first independently resolved the policy target in order to check whether a policy already exists. If it didn't find any, it called alloc_feature_policy() which called validate_ipc_target() which resolved the policy target again. In the time between the two checks, the symlink could be altered, and a lucky attacker could fool the program into thinking that a policy doesn't exist for a target, and then switch the symlink to point at another file. At the very least this could allow him to create two policies for the same program target, and possibly to bypass security by associating the permissions for one target with another, or force default permissions to apply to a target for which a more specific rule has been configured. So we don't that. Instead, the policy target is resolved once and that result is used for the rest of the lookup/creation process.
| * Add resolve_path() to utilsLibravatar Jerzi Kaminsky2017-04-16
| |