Commit Graph

2981 Commits

Author SHA1 Message Date
Tony Crisci
badfcf7c76 Render focused stack/tab children focused
Whenever a stacked or tabbed container has focused, paint the titlebars of all
its child windows to be focused as well to indicate the parent stack/tab
container has the focus.
2016-07-27 23:16:58 -04:00
Tony Crisci
88b7cbe314 Implement focus child command
The `focus child` command focuses the child container within the selected
container.
2016-07-27 22:48:46 -04:00
Drew DeVault
6d2b455727 Merge pull request #790 from acrisci/bug/switch-focus-workspace-output
bugfix: set focus to workspace of an output
2016-07-27 22:14:20 -04:00
Tony Crisci
8a03f138bf bugfix: set focus to workspace of an output
In `move_focus()`, when given an output, set the focus to the workspace of that
output instead of the output itself.

This fixes a bug that did not allow users to switch between outputs introduced
in afc6ad6.

It also fixes other issues before that commit when a workspace with children
was selected and the user tried to switch focus in the direction of another
output.
2016-07-27 22:06:16 -04:00
Drew DeVault
70e73d71db Merge pull request #789 from acrisci/bug/focus-parent-above-workspace
bugfix: cmd focus parent don't set focus above ws
2016-07-27 21:36:08 -04:00
Tony Crisci
afc6ad6419 bugfix: cmd focus parent don't set focus above ws
In the `focus parent` command, do not set focus above the workspace level.
These containers are not meant to be focused.

This prevents a crash on repeated `focus parent` commands.
2016-07-27 21:30:45 -04:00
Drew DeVault
ba8f0da9de Merge pull request #787 from acrisci/bug/ipc-command-result-array
Put ipc command result json in an array
2016-07-24 07:43:33 -04:00
Tony Crisci
0d461ad988 Put ipc command result json in an array
For compatibility with i3, put the command result into an array.

Returning multiple command results is still unsupported.
2016-07-23 23:13:09 -04:00
Drew DeVault
4637462a68 Merge pull request #785 from thejan2009/floating-scroll-event-passthrough
don't passthrough a floating_scroll event to focused window
2016-07-23 11:03:21 -04:00
D.B
80858c1f57 don't passthrough a floating_scroll event to focused window 2016-07-23 16:58:37 +02:00
Drew DeVault
643bd8f158 Merge pull request #779 from thejan2009/smart-gaps-outer
Hide outer gaps too when smart_gaps is on
2016-07-23 10:55:18 -04:00
Drew DeVault
1fb971fffc Merge pull request #781 from thejan2009/bottom-right-edges
properly hide bottom and right borders
2016-07-22 05:29:08 -04:00
D.B
f16cb1464f properly hide bottom and right borders 2016-07-22 06:00:27 +02:00
Drew DeVault
789870e60e Merge pull request #780 from zandrmartin/fix-edge-gap
fix regression in hide_edge_borders
2016-07-21 22:23:14 -04:00
Zandr Martin
3137615838
fix regression in hide_edge_borders 2016-07-21 21:15:46 -05:00
D.B
d61b59cad1 outer gap 0 with smart_gaps on 2016-07-21 22:58:13 +02:00
Drew DeVault
9fe1d3da38 Merge pull request #778 from thejan2009/hide_edge_borders-fix
Hide edge borders fix
2016-07-21 16:56:44 -04:00
D.B
03b0180c30 rename ws to workspace for clarity 2016-07-21 22:21:49 +02:00
D.B
b893f07ce1 calculate borders for hiding from workspace geometry 2016-07-21 22:21:49 +02:00
Drew DeVault
f181bf9c54 Merge pull request #777 from Hummer12007/bg-arng
Arrange backgrounds only when required
2016-07-21 15:57:00 -04:00
Mykyta Holubakha
a2bc6f3bfd Arrange backgrounds only when required 2016-07-21 22:47:35 +03:00
Drew DeVault
464239f7ac Merge pull request #776 from Hummer12007/window-events
[RFC] Implement window events
2016-07-21 14:59:57 -04:00
Mykyta Holubakha
f022628a2e Handle transient_for 2016-07-21 21:53:36 +03:00
Mykyta Holubakha
f52daa26c9 Unite describe_view and describe_window 2016-07-21 21:51:20 +03:00
Mykyta Holubakha
e5c7b019ff Fix dispatching and assigning events 2016-07-21 21:51:20 +03:00
Mykyta Holubakha
2029fef6b8 More progress on window events 2016-07-21 21:51:20 +03:00
Mykyta Holubakha
976e48d79f Initial work on window events 2016-07-21 21:51:20 +03:00
Drew DeVault
095353d91d Remove arrange_windows from post-render
Fixes #741
2016-07-21 08:27:25 -04:00
Drew DeVault
5de5c3838b Merge pull request #774 from Hummer12007/eventmasks
Properly construct event bitmasks
2016-07-19 17:56:51 -04:00
Mykyta Holubakha
0b5391ed77 Properly construct event bitmasks 2016-07-20 00:47:57 +03:00
Drew DeVault
7e6c67c26c Merge pull request #773 from SethBarberee/patch-2
Update swaylock zsh completion
2016-07-19 08:13:42 -04:00
Seth Barberee
6ec51e3350 Update _swaylock
added new option of daemonize (-f --daemonize) that was added to swaylock in https://github.com/SirCmpwn/sway/pull/750 and added socket completion upon reading more into swaylock/main.c  (it also is in the usage help but never had it in completion)
2016-07-18 23:35:53 -05:00
Drew DeVault
4190ddb0d1 Merge pull request #770 from minus7/that-bugged-me
clean up apply_input_config
2016-07-18 14:28:04 -04:00
minus
50b09937b2 clean up apply_input_config 2016-07-18 20:12:49 +02:00
Drew DeVault
5a1d95ac2a Move backgrounds to back after arrange_windows
Fixes #769
2016-07-18 09:12:48 -04:00
Drew DeVault
c0e4522202 Merge pull request #764 from deklov/move-position-bug-02
Do not crash when handling the command 'move position'
2016-07-18 08:50:53 -04:00
Drew DeVault
2956645718 Merge pull request #768 from gpyh/patch-1
Packages link to the wiki page with instructions
2016-07-18 07:41:46 -04:00
Drew DeVault
435509c871 Merge pull request #767 from thejan2009/correct-container-titles
Construct titles of nested tabbed/stacked containers from app_id inst…
2016-07-18 07:38:35 -04:00
D.B
5d250f3da6 Construct titles of nested tabbed/stacked containers from app_id instead of title 2016-07-18 12:35:50 +02:00
Yacine Hmito
9b2780a6c2 Packages link to the wiki page with instructions
I wanted to make sure that NixOS users get the warning without polluting the README.
Turns out the "Install other distros" had plenty to say about supported packages, so I slightly restructured the page.
Now the README links to the wiki page.
2016-07-18 07:00:17 +02:00
David Eklov
d9eb49f3b1 Add missing entry to list of accepted arguments for the move command 2016-07-17 22:52:39 -05:00
David Eklov
d202ca2fd7 Do not crash when handling the command 'move position'
Sway expected 'move position' to be 'move position mouse'. If mouse is not
present in the command, Sway crashes.
2016-07-17 22:50:15 -05:00
Drew DeVault
31a7119c3d Remove disclaimer from default config
I realized we actually support everything in the default config now.
2016-07-17 21:31:34 -04:00
Drew DeVault
0aac17548e Merge pull request #763 from Hummer12007/patch-2
Fix a warning
2016-07-17 21:00:56 -04:00
Hummer12007
06f46955c0 Fix a warning 2016-07-18 00:57:49 +03:00
Drew DeVault
2530f952c9 Fix clang warning 2016-07-17 12:59:39 -04:00
Drew DeVault
ff363aa7f7 Fix bug with views behind backgrounds on ws switch 2016-07-17 12:57:40 -04:00
Drew DeVault
6d971af5c3 Turn swaybg into a shell surface 2016-07-17 11:55:05 -04:00
Drew DeVault
c8917395c0 Remove SIGSERV and SIGABORT handler
From now on let's just let the core dumps happen and ask users to
provide them.
2016-07-17 11:29:29 -04:00
Drew DeVault
3bb880bf20 Implement configurable wrapping on bar ws scroll 2016-07-17 11:26:38 -04:00