D.B
9977b01928
Update container geometry on layout switch
...
Deeply nested containers which had their layouts changed didn't update
their actual_geometry, this messed up their child containers. Those got
width and height of 0, which was then decreased for stacked/tabbed
containers by title height. Underflow ensued, these containers suddenly
had height 4294967273. In short, not updating actual_geometry didn't
play nicely with nested containers.
2016-07-31 10:22:18 +02:00
Zandr Martin
98aa59fdda
implement solid color rendering for swaybg
2016-07-30 18:50:13 -05:00
Zandr Martin
e6af5f8bdb
Merge branch 'master' of git://github.com/SirCmpwn/sway into x11-pids
2016-07-30 08:44:21 -05:00
D.B
c33e0ee629
revert border hiding to more recent version
2016-07-30 15:22:53 +02:00
D.B
8d0048c8d5
properly hide top border inside tabbed/stacked
...
When titlebar is hidden, top border of the topmost view inside
tabbed/stacked container will not be drawn. This is changed in layout.c
On the other hand, top border should be drawn sometimes, for example
when titlebar is hidden on a view that is not the topmost inside
tabbed/stacked container. This is changed in border.c
2016-07-30 15:12:34 +02:00
Zandr Martin
c0683a0444
remove outdated (when wlc commit merged) comment
2016-07-29 20:20:14 -05:00
Zandr Martin
d0a0d5e03c
update handler to get pid from wlc for all views
2016-07-29 16:40:38 -05:00
Drew DeVault
3f83968d30
Fix swaybg sizing on hidpi outputs
2016-07-29 09:14:26 -04:00
Drew DeVault
9b24af1c22
Document scale factor configuration in sway(5)
2016-07-29 08:00:23 -04:00
Drew DeVault
9661272224
Merge remote-tracking branch 'origin/hidpi'
2016-07-29 07:35:43 -04:00
Zandr Martin
a3980d456d
third try for #678
2016-07-28 17:43:43 -05:00
Drew DeVault
cad085ed9d
Update IPC JSON responses for HiDPI setups
2016-07-28 14:42:39 -04:00
Drew DeVault
11e7ca044c
Update hidpi support to latest wlc API
2016-07-28 14:36:49 -04:00
Drew DeVault
6ea02f3064
Initial pass on HiDPI support
2016-07-28 14:36:49 -04:00
Mykyta Holubakha
cf8ef2aea2
Initialize client's subscribed events
2016-07-28 13:38:02 +00:00
Drew DeVault
d07eaed79f
Merge pull request #793 from thejan2009/workspace_layout_first_window_fix
...
bugfix: invisible windows on empty workspace with tabbed/stacked layout
2016-07-28 07:42:43 -04:00
Drew DeVault
ee67c5bee3
Merge pull request #791 from acrisci/feature/focus-child
...
Implement `focus child` command
2016-07-28 07:26:37 -04:00
Drew DeVault
d03266a77a
Merge pull request #792 from acrisci/feature/render-focused-stack-children-focused
...
Render focused stack/tab children focused
2016-07-28 07:26:13 -04:00
D.B
33c1df38bd
Close all focused container's child views on kill
...
Previously, cmd_kill only closed a focused view, while containers were
not affected. Now it closes all views that are children of the focused
container.
2016-07-28 10:31:18 +02:00
D.B
a46cf77549
bugfix: windows on empty workspaces with layout tabbed/stacked would spawn with 0x0 geometry
2016-07-28 05:56:36 +02:00
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
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
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
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
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
D.B
f16cb1464f
properly hide bottom and right borders
2016-07-22 06:00:27 +02: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
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
Mykyta Holubakha
a2bc6f3bfd
Arrange backgrounds only when required
2016-07-21 22:47:35 +03: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
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
D.B
5d250f3da6
Construct titles of nested tabbed/stacked containers from app_id instead of title
2016-07-18 12:35:50 +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
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
3bb880bf20
Implement configurable wrapping on bar ws scroll
2016-07-17 11:26:38 -04:00
Drew DeVault
a9767ad2f7
Allow users to customize the cursor on clients
...
This also sets the default size to 16 and documents all of the other
environment variables in use in sway(1).
2016-07-17 11:26:30 -04:00