Commit graph

1940 commits

Author SHA1 Message Date
Drew DeVault 68fb10a84b Merge pull request #941 from thejan2009/floating-border
Fix border color for floating containers
2016-10-12 21:43:16 -04:00
Drew DeVault 67eaa845df Merge pull request #940 from thejan2009/reorder-cmd-handler
reorder cmd_handler arrays for bsearch
2016-10-12 21:43:05 -04:00
Drew DeVault 59babac69d Merge pull request #938 from alkino/fix_sibling
Fix creating of sibling floating/children
2016-10-12 21:42:57 -04:00
Drew DeVault f1c5ba0a10 Merge pull request #937 from alkino/fix_scale_factor
Add constant scale factor in get_text_size
2016-10-12 21:42:51 -04:00
Drew DeVault a92d427b37 Merge pull request #935 from thejan2009/wrap-focus-change
Wrap focus change
2016-10-12 21:42:42 -04:00
Drew DeVault 61097085b0 Merge pull request #936 from thejan2009/pango-numeric-char-ref
parse pango markup in workspace names (and bugfix)
2016-10-12 21:42:34 -04:00
Drew DeVault 28c0426e85 Merge pull request #928 from wasamasa/bugfix-swaylock-font
Explicitly set cairo font to avoid wonky fallback
2016-10-12 21:40:53 -04:00
Drew DeVault a5a3ae52d4 Update CONTRIBUTING.md
Update release cycle to be a bit slower with RCs
2016-10-12 21:40:45 -04:00
Zandr Martin 33fe87a1fb prevent dereference of freed workspace 2016-10-04 17:25:10 -04:00
Zandr Martin 9a74abc38a consolidate nodes json 2016-10-04 17:25:10 -04:00
Patrick Sauter 73e3f0e046 moved ipc_init above config file processing.
This is necessary because commands in the config file (mode for
instance) emit ipc events, and if ipc_init has not been called the
ipc_clients_list is not initialized, and we segfault.  This fixes that
bug.
2016-10-04 17:25:09 -04:00
Zandr Martin 2d22a6fa1e fix pointer format string in sway_log() call 2016-10-04 17:25:09 -04:00
D.B fe89d7fba3 Correctly scale swaybar
Fixes #910. There were some missing multiplications with window->scale.
2016-09-29 14:31:35 +02:00
Drew DeVault 4e660975a9 Merge pull request #911 from thejan2009/setgid-setuid
Split setgid and setuid, add privilege check [RFC]
2016-09-27 14:28:14 -04:00
Drew DeVault a95ce5ce65 Merge pull request #914 from zandrmartin/container-ids
add unique IDs to containers
2016-09-27 14:27:29 -04:00
Drew DeVault c55ce6ef3d Merge pull request #915 from RyanDwyer/implement-workspace-number-default
Implement default name for workspace command
2016-09-25 11:07:25 -04:00
Ryan Dwyer 64d463142f Implement default name for workspace command
This implements commands such as:

    workspace number 9: test

If a workspace with the given number exists then it will be focused,
otherwise a new workspace with the given name will be created.
2016-09-25 21:42:28 +10:00
Zandr Martin 7d947fdb95
add unique IDs to containers 2016-09-21 21:05:09 -05:00
D.B 5e585f9603 Split setgid and setuid, add privilege check
This commit deals with issue #884. I consulted the following sources:
https://www.securecoding.cert.org/confluence/display/c/POS36-C.+Observe+correct+revocation+order+while+relinquishing+privileges
and
https://www.securecoding.cert.org/confluence/display/c/POS37-C.+Ensure+that+privilege+relinquishment+is+successful
2016-09-20 16:25:32 +02:00
Drew DeVault d98c26d0ed Merge pull request #909 from zandrmartin/grab-focused
implement "focused container" option for swaygrab
2016-09-19 06:53:29 +09:00
Zandr Martin 0516dba3f6
implement "focused container" feature for swaygrab 2016-09-18 16:41:08 -05:00
Drew DeVault 043640820f Merge pull request #907 from zandrmartin/fix-json-tree-focus-property
fix get_workspaces json reply
2016-09-18 12:10:34 +09:00
Zandr Martin e75217cfb1
fix get_workspaces json reply 2016-09-17 22:00:11 -05:00
Drew DeVault 476274cfbb Merge pull request #904 from zandrmartin/fix-json-tree-focus-property
fix view focus property in get_tree json
2016-09-18 06:56:50 +09:00
Zandr Martin 87080bb9cc
take four! 2016-09-17 16:36:55 -05:00
Drew DeVault a7eeb48aac Merge pull request #906 from zandrmartin/global-focus-pointer
add global `current_focus` pointer
2016-09-18 06:30:55 +09:00
Zandr Martin e18b7cdfa9
add global current_focus pointer 2016-09-17 15:54:45 -05:00
Drew DeVault 75f82808e2 Merge pull request #903 from RyanDwyer/fix-swaybar-output
Fix swaybar when running on named outputs.
2016-09-17 17:00:36 +09:00
Ryan Dwyer e4cb4d1b5c Fix swaybar when running on named outputs.
When using a bar on a named output, load_swaybars() requires the
output to be active (ie. in the root container), but this is not the case if
the bar is added to the last output. To fix this, load_swaybars() is now
called after the output has been added to the root container.

After fixing that, swaybar would segfault due to using the wrong index
variable when loading outputs and config.
2016-09-17 17:25:45 +10:00
Drew DeVault 461e250e26 Merge pull request #902 from zandrmartin/patch-2
document `workspace_auto_back_and_forth` command
2016-09-17 11:58:10 +09:00
Zandr Martin 64f61873a9 document workspace_auto_back_and_forth command 2016-09-16 21:53:46 -05:00
Drew DeVault 953d6880c7 Merge pull request #896 from thejan2009/bugfix/swaybar-whitespace-in-ws-name
Put workspace name in quotes (swaybar ipc)
2016-09-12 14:41:07 +09:00
D.B c239f228c2 swaybar sends workspace name in quotes
fixes #894
2016-09-12 06:58:53 +02:00
Drew DeVault 7c166e350b Merge pull request #889 from thejan2009/bugfix/indicator_border
Use indicator border color only when needed.
2016-09-10 10:17:16 -04:00
D.B 873dfc07f3 Use indicator border color only when needed.
Indicator border color is now used only when a container is the only
child. Reason for the change? i3 does it this way. Sway container
borders are now a bit more similar to i3 ones.
2016-09-10 16:11:33 +02:00
Drew DeVault 40013029ea Merge pull request #888 from zandrmartin/swaybar-pango-fix
fix pango markup on swaybar
2016-09-08 15:50:00 -04:00
Zandr Martin 70b3796071
fix pango markup on swaybar 2016-09-08 14:45:21 -05:00
Drew DeVault 1b4b42fc65 Merge pull request #885 from zandrmartin/commands-refactor
merge resize.c into commands/resize.c
2016-09-07 08:01:28 -04:00
Zandr Martin 511eed90cd
squash commits, move enum into resize.c 2016-09-07 06:48:41 -05:00
Drew DeVault 1510a21f00 Remove extraneous logging 2016-09-06 08:02:32 -04:00
Drew DeVault 67714de1fe Remove HACKING.md 2016-09-05 12:29:35 -04:00
Drew DeVault 29e1582abb Fix typo 2016-09-05 12:21:42 -04:00
Drew DeVault 1e9538e4b9 Merge pull request #882 from SirCmpwn/move-views-between-outputs
Move views between outputs
2016-09-05 12:19:38 -04:00
Mikkel Oscar Lyderik 84d504ebdf Make it possible to move views between outputs
This patch makes it possible to move views between outputs using the
`move left|right|up|down` commands.

It behaves similar to i3 with one important difference. The focus will
always follow the view being moved, unlike i3 where the focus doesn't
always follow the view to a new output (I assume that's a bug in i3).
2016-09-05 12:14:23 -04:00
Drew DeVault dbb7191222 More small cleanup 2016-09-05 12:13:03 -04:00
Drew DeVault a89105e62d Minor cleanup on CONTRIBUTING.md 2016-09-05 12:11:39 -04:00
Drew DeVault d515ab0004 Document release cycle in CONTRIBUTING.md 2016-09-05 12:09:21 -04:00
Drew DeVault af44154119 Fix constant scale factor in font code 2016-09-05 11:52:52 -04:00
Drew DeVault b2226ac655 Add client support for HiDPI
This adds HiDPI support to swaybar, swaybg, and swaylock.
2016-09-05 11:36:48 -04:00
Drew DeVault 61184e3208 Initial testing on hidpi clients 2016-09-05 10:32:21 -04:00