S. Christoffer Eliesen
831f6680f4
arrange_windows_r: Bring parent coordinates into layout calculations.
...
This brings consistency into the algorithm (instead of resetting and
then fetching again).
9 years ago
Mikkel Oscar Lyderik
cf64000e21
Focus new sibling added to container
...
This makes sure that the window being added to a container gets focus.
9 years ago
Mikkel Oscar Lyderik
5d07c61330
Trigger workspace init event (floating)
...
Triggers workspace init event when moving a floating window to a new
workspace.
This is a follow up on #391 which didn't handle floating windows.
9 years ago
Mikkel Oscar Lyderik
50b04884b6
Trigger ipc_event_workspace in all cases
...
This makes sure that the workspace IPC event is triggered when needed.
Fixes #382 while making sure that the IPC event is only triggered once.
9 years ago
S. Christoffer Eliesen
f4b9c3856a
layout: Fix `edge_gaps off` with top/left panels.
...
Since x/y won't be zero when there's a top or left panel in place, we
need to take those coordinates into account too.
9 years ago
S. Christoffer Eliesen
e45fd9b6c5
extensions: Track panels by wl_resource, position per panel.
...
Track each panel separately via its wl_resource. `set_panel_position`
might be called before `set_panel`, so reuse panel config.
Place the position in panel_config so that each panel has its own
position.
9 years ago
S. Christoffer Eliesen
f0b3ee6d84
layout: arrange_windows: Partially fix swaybar irregularties.
9 years ago
S. Christoffer Eliesen
0ad5059b6f
layout: arrange_windows: Fix/better debug output.
9 years ago
S. Christoffer Eliesen
ed730db11b
layout: Keep output at the correct size, workspace can be smaller.
...
If the output is not at the correct size then that info must be queried
from wlc. The output size is used by e.g. seamless mouse to detect
output edges.
With this patch the output size is now correct and the workspace size is
adjusted according to any panels.
Without this patch seamless mouse would fail to detect outputs
above/below each other if there was a panel in between because the
output would offically end where the panel started, not at the actual
screen edge.
9 years ago
Drew DeVault
f6da4dda4b
Bring unmanaged windows to front on output arrange
...
Fixes #312
9 years ago
Mikkel Oscar Lyderik
3891a7c73f
Don't reset x,y position before use.
...
The x and y position is calculated based on the position of the bar, we
don't want to reset these values when we need them.
9 years ago
Drew DeVault
2f89b7084d
Correctly handle moving between fullscreen views
...
If focus would move in an output with a fullscreen view, it always
leaves the output. If focus would enter an output with a fullscreen
view, it always focuses the fullscreened view.
9 years ago
Drew DeVault
6655534feb
Fullscreen on top of bar
9 years ago
Drew DeVault
ef91764bc7
Fix output adjustment for panels
9 years ago
Drew DeVault
e59cffcea2
Support desktop shell panels in compositor
9 years ago
S. Christoffer Eliesen
e31a899841
layout: get_swayc_in_direction_under: Handle floating views.
9 years ago
S. Christoffer Eliesen
b5ddad4bf6
layout: swap_container: Handle floating views.
9 years ago
S. Christoffer Eliesen
ed1b0bffbc
layout: replace_child: Handle floating views.
9 years ago
S. Christoffer Eliesen
8aef255d5f
layout: add_sibling: Handle floating views properly.
...
This should fix #241 .
9 years ago
S. Christoffer Eliesen
236f26f62e
output: Support multiple adjacent outputs.
...
When querying for an adjacent output we now need an absolute position in
order to know which adjacent output that matches. (The position is
either the current mouse position or the center of the currently focused
container, depending on context.)
If two outputs have one edge each that at least partially align with
each other they now count as adjacent.
Seamless mouse is affected by this and now properly moves and positions
itself between outputs with "uneven" placement (as long as they have at
least some part of the edge adjacent to each other).
When focusing or moving a container in a specified direction the center
of the current focused container decides where to look for an adjacent
output. So if e.g. an output has two adjacent outputs to the right and a
"focus right" command is issued then it's the placement of the currently
focused container that decides which output actually gets focused.
Also, if an output has at least one output adjacent in some direction
but the entire edge is not covered (ie. it has "holes" with no outputs),
then the algorithm will choose the output that is closest to the
currently focused container (this does not apply to seamless mouse, the
pointer will just stop at the edge in that case).
9 years ago
Drew DeVault
250097d32b
Fix gaps for views being incorrect
9 years ago
S. Christoffer Eliesen
abc5fbfaec
Learn "gaps edge_gaps <on|off|toggle>".
...
When yes, the old behaviour of adding half the inner gap around each
view is used.
When no, don't add any gap when an edge of the view aligns with the
workspace. The result is inner gap only between views, not against the
workspace edge.
The algorithm is not perfect because it means the extra space is
distributed amongst edge-aligned views only, but it's simple, looks good
and it works.
9 years ago
S. Christoffer Eliesen
af31a3f04a
commands: Learn 'move workspace to output <direction|name>'.
9 years ago
S. Christoffer Eliesen
3c250e78be
layout: get_swayc_in_direction: Properly find adjacent outputs.
9 years ago
S. Christoffer Eliesen
fede354a3d
layout: Don't reset container size if it's a floating window.
9 years ago
S. Christoffer Eliesen
5a70853253
log: Add swayc_log, use at a few key places.
...
swayc_log works just like sway_log, but appends type and name from given
container to the log output.
9 years ago
taiyu
4944996170
Merge branch 'master' of https://github.com/taiyu-len/sway
...
merge
9 years ago
taiyu
6c33f8122a
#184
9 years ago
taiyu
9fd2d635a1
container_move check
9 years ago
taiyu
0de29d8247
prevent views from disappearing
9 years ago
taiyu
dbeca88dee
default gap value
9 years ago
taiyu
79da7f112a
#151 fix
9 years ago
Luminarys
167409702f
Fixed move scratchpad and added in scratchpad show
9 years ago
Luminarys
7eefecf479
Added in scratchpad adding
9 years ago
taiyu
63e735270c
move v3
9 years ago
taiyu
28c22c8f80
style
9 years ago
taiyu
c9de300888
layout fix for a certain case
9 years ago
taiyu
076cf78d7c
dont move floating contaienrs
9 years ago
taiyu
1820b3f0bb
move function redone
9 years ago
taiyu
5678d824e4
update visibility + container info functions
9 years ago
taiyu
4df64127e9
slight fix
9 years ago
taiyu
274e56a602
fixed move_container bug, log prints before aborting
9 years ago
taiyu
357af228d6
some function documentation, fixed gaps on config reload
9 years ago
taiyu
1fa7a91bfb
move_container_to fixup
9 years ago
taiyu
225c2fbe5b
fixed segfault on exit + a little fixup of that floatfocus pr
9 years ago
minus
03e4a97dbe
added "move container to workspace"
...
makes the previous commit actually testable
9 years ago
taiyu
dbad30a409
add limit to swayc_in_direction
9 years ago
taiyu
51ab3c9180
merge
9 years ago
taiyu
f53ce887e8
fixed container resize oddity
9 years ago
taiyu
e139de0857
floating/tiling move + floating resize cleaned and fixed
9 years ago
Drew DeVault
1fd5962aeb
Fix minor bug with output positioning
9 years ago
Drew DeVault
07229edfe6
Implement output positioning
...
🎉
9 years ago
Drew DeVault
eac0920f49
Set x/y positions for output containers
9 years ago
Luminarys
f6b16ca089
Refactored resizing functions into resize.c
9 years ago
taiyu
d2e1c660b1
swayc_is_fullscreen
9 years ago
taiyu
1a1ac64662
bugfixes, renames
9 years ago
minus
8dfaf6265b
fixed #108 signed/unsigned comparison
9 years ago
Drew DeVault
a436fc17ff
Merge pull request #105 from Half-Shot/master
...
Basic 'move' functionality.
9 years ago
Drew DeVault
464b49eda2
Merge pull request #101 from Luminarys/master
...
Added in basic resizing command.
9 years ago
Luminarys
461da7f87f
Added in bspwm like mouse resizing
9 years ago
Luminarys
f589731f29
Rewrite of resize command to make it more sane
9 years ago
Half-Shot
68213d57c5
Fixed style errors
9 years ago
Half-Shot
713bf29ec9
Few stray bits
9 years ago
Half-Shot
5a9ba261bc
Merge branch 'master' of https://github.com/SirCmpwn/sway
9 years ago
Half-Shot
2a62c5c7fb
Basic left right move command implemented.
9 years ago
taiyu
36e07e9ebc
find_parent_by_type
9 years ago
Luminarys
c9935507f2
Style fixes
9 years ago
Luminarys
bc3babf566
Added in basic resize command
9 years ago
taiyu
927ef0a5ec
Merge branch 'master' of https://github.com/SirCmpwn/sway
...
merging
9 years ago
Drew DeVault
95f5660897
Merge pull request #97 from taiyu-len/master
...
setup for resizable windows, drop weight
9 years ago
taiyu
f5fde7c45c
style
9 years ago
taiyu
f6e002fb8b
small fix, default width/height 0
9 years ago
taiyu
b76dcf6e0f
unnessesary log
9 years ago
taiyu
fbaa9111a8
setup for resizable windows, drop weight
9 years ago
Drew DeVault
14947c92aa
Merge pull request #94 from taiyu-len/master
...
input_state.ch, and command conflicts resolved
9 years ago
KoffeinFlummi
3c124d9e7d
Change gap behaviour to more closely match i3-gaps
...
Previously, when only using inner gaps, the gap between a window at the
edge of the output was only half the size of the gaps between views.
Additionally, the gaps between the actual windows was twice as wide as
it was on i3-gaps.
9 years ago
taiyu
1d9b73ed67
remove debug message
9 years ago
taiyu
5ff0619ca1
input state, find_container_in_direction
9 years ago
taiyu
6f424ff6b8
fixed default active_workspace, and more use of set_focused_container_for(...)
9 years ago
taiyu
e16a4015ff
fixed focus key handler
9 years ago
taiyu
6dc1ae802b
focus to only child
9 years ago
Luminarys
7137be9a3f
Fixes to make floating windows work better
9 years ago
Drew DeVault
cf916bbf6f
Improvements to gaps
9 years ago
KoffeinFlummi
c75d5ceba4
Merge remote-tracking branch 'upstream/master' into gaps
9 years ago
KoffeinFlummi
4c688cba4e
Add support for gaps option
9 years ago
Luminarys
a7c045a520
Patched for wlc updates
9 years ago
taiyu
03e83c7ef9
restored fullscreen/focus behavior
9 years ago
Drew DeVault
2139001c9f
Coding style enforcement
...
This was done by hand, so I might have missed things. If anyone knows of
a good C style enforcement tool, let me know.
9 years ago
taiyu
af1b3d9755
fixed floating window crashing bug
9 years ago
taiyu
63bc0d3b54
more changes
9 years ago
taiyu
11321ca2dd
changed handling of focus, handling of view by type
9 years ago
Drew DeVault
9835845e22
Fix segfault from focus_view
9 years ago
Luminarys
47ec999e71
Fixes to floating and umanaged views
9 years ago
Luminarys
05f969074e
Added in basic floating toggling
9 years ago
taiyu
f1d5305dc6
fix
9 years ago
taiyu
4077238782
sends hidden views to back, visible view to front
9 years ago
taiyu
c024f06631
handle_view_state_request
9 years ago
Drew DeVault
19c0ec6a08
Fix movement between outputs
9 years ago
Drew DeVault
ae536c21d3
Revert "get/set_userdata stores swayc_t *, fixed memory leak, minor changes."
9 years ago
taiyu
083d1eed1f
fixed 2 small memory leaks & adds format attribute to log.
9 years ago