Drew DeVault
f30f60dad8
Revert "also check floating cons in container_find"
8 years ago
Drew DeVault
ce713efcd2
Merge pull request #945 from thejan2009/workspace_layout
...
Fixes dealing with workspace_layout and related bugs [rfc]
8 years ago
D.B
166c2a3687
generalize wrapping views under workspaces
8 years ago
D.B
571321a1d8
add workspace_layout, ensure ws is always L_HORIZ
...
Add swayc_change_layout function, which changes either layout or
workspace_layout, depending on the container type. Workspace being
always L_HORIZ makes this much more i3-compatible.
8 years ago
D.B
0ddc4279d1
wrap workspace's child into a container if needed
...
If workspace has stacked/tabbed layout, its direct children should be
wrapped into a container which enables them to draw the titlebar.
8 years ago
D.B
24c3b86065
also check floating cons in container_find
8 years ago
Nicolas Cornu
5384d3effe
Can't move an empty workspace
8 years ago
Drew DeVault
8d277bc962
Merge pull request #942 from thejan2009/bugfix-931
...
fix for_window [] move scratchpad
8 years ago
Drew DeVault
0fc03f9c13
Merge pull request #941 from thejan2009/floating-border
...
Fix border color for floating containers
8 years ago
D.B
8264fedce6
fix for_window [] move scratchpad
...
- move wlc_view_set_mask before applying window criteria
- check parent_container because container in scratchpad doesn't have a
parent
8 years ago
D.B
746345e3b8
reorder cmd_handler arrays for bsearch
8 years ago
D.B
77f99480ae
draw indicator border only for non-floating
8 years ago
Nicolas Cornu
382d47e238
Fix creating of sibling floating/children
...
If we want to add a sibling of different type than current
container it failed. Because we add it to the wrong list
8 years ago
Nicolas Cornu
2d82586c88
Add constant scale factor in get_text_size
...
af44154
forget one "get_text_size" made it possible to
do a format string by setting title bar.
8 years ago
D.B
379b1a0378
add focus changing between floating containers
...
It will also wrap if needed.
8 years ago
D.B
d3f5ac8cbb
add force_focus_wrapping option
8 years ago
D.B
7f558ce894
wrap container in direction (if possible)
...
Introduces container wrapping - if there is no other viable move, the
selection wraps on the first container where such action is possible.
8 years ago
Nicolas Cornu
6ced4098dc
fix for click on title_bar
...
- Check null pointer for swayc_parent_by_type
- Split lines to follow coding style
8 years ago
Nicolas Cornu
37065cd0c4
add click on title_bar to focus a container
8 years ago
Drew DeVault
d2aba3ce3a
Merge pull request #924 from zandrmartin/fix-focus-segfault
...
prevent dereference of freed workspace
8 years ago
Zandr Martin
ba581c4442
consolidate nodes json
8 years ago
Zandr Martin
09a44263c3
Merge branch 'master' into fix-focus-segfault
8 years ago
Zandr Martin
4c0e809028
prevent dereference of freed workspace
8 years ago
Patrick Sauter
153620aefe
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.
8 years ago
Zandr Martin
58ac1f7f24
fix pointer format string in sway_log() call
8 years ago
Drew DeVault
4e660975a9
Merge pull request #911 from thejan2009/setgid-setuid
...
Split setgid and setuid, add privilege check [RFC]
8 years ago
Drew DeVault
a95ce5ce65
Merge pull request #914 from zandrmartin/container-ids
...
add unique IDs to containers
8 years ago
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.
8 years ago
Zandr Martin
7d947fdb95
add unique IDs to containers
8 years ago
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
8 years ago
Zandr Martin
0516dba3f6
implement "focused container" feature for swaygrab
8 years ago
Zandr Martin
e75217cfb1
fix get_workspaces json reply
8 years ago
Zandr Martin
87080bb9cc
take four!
8 years ago
Zandr Martin
e18b7cdfa9
add global `current_focus` pointer
8 years ago
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.
8 years ago
Zandr Martin
64f61873a9
document `workspace_auto_back_and_forth` command
8 years ago
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.
8 years ago
Zandr Martin
511eed90cd
squash commits, move enum into resize.c
8 years ago
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).
8 years ago
Drew DeVault
af44154119
Fix constant scale factor in font code
8 years ago
Drew DeVault
0913eff915
Add support for * input configs
...
Closes #852
8 years ago
Zandr Martin
65ace5dec5
merge in latest commits
8 years ago
Zandr Martin
79ffea328c
Merge branch 'master' of git://github.com/SirCmpwn/sway into commands-refactor
8 years ago
Zandr Martin
b374c35758
refactor commands.c
8 years ago
Lukas Lihotzki
6addaca9fa
Correct `hide_edge_borders` command
...
`vertical` and `horizontal` should be swapped.
If border_left and border_right were set to 0, the vertical borders
instead of the horizontal borders would be hidden.
i3 handles this command equally.
8 years ago
Drew DeVault
38ca94e0ed
Tweak how swaylock surfaces are handled
...
Fixes #875
8 years ago
Drew DeVault
416417a54c
Reorganize includes
8 years ago
Zandr Martin
a9c0993218
document `orientation` command
8 years ago
Hummer12007
db1c105e77
Fix a format string
8 years ago
James Murphy
8af49eb696
Avoid dereferencing null configuration
...
Fixes: https://github.com/SirCmpwn/sway/issues/865
8 years ago
Götz Christ
aecd33d25d
Add input example section to config
...
Also improve sway-input(5) description to be more consistent with sway-bar(5).
8 years ago
Guillaume Brogi
7bbf7e15a0
Update man page
...
The man page mentioned that "indicator" wasn't implemented, this isn't
the case anymore.
8 years ago
Guillaume Brogi
6173c84117
Rerender after every split command
8 years ago
Guillaume Brogi
fc492a4da8
Add support for indicator color
8 years ago
D.B
ce98569fbc
Handle output disabling during runtime
...
Output now gets disabled if disable command is invoked via bindsym or
IPC.
8 years ago
Manuel Mendez
631ba506d6
document all xkb settings handled by wlc
8 years ago
Drew DeVault
b8642ce681
Merge pull request #843 from thejan2009/bug/move-container-819
...
Fix container move when workspace is focused
8 years ago
D.B
41b5c6d1a9
Sort workspaces when moving workspace to output
...
This should fix #839
8 years ago
D.B
61781bbef0
Fix container move when workspace is focused
...
Fixes #819 . If workspace is focused and command 'move container to
workspace/output' is issued, workspace child containers are wrapped in a
new container and moved according to command.
8 years ago
D.B
9c91952aec
Display class in tab title if app_id is null
...
This is a feature that can't work the same as i3, because there is no
real window classes in wayland. This way, we avoid null titles as much
as possible.
8 years ago
Drew DeVault
aca9f6b2a2
Merge pull request #840 from minus7/man-inputs
...
added get_inputs hint to man 5 sway-input
8 years ago
minus
2f50be3d88
added get_inputs hint to man 5 sway-input
8 years ago
D.B
aa292db8d1
Fix switch to prev ws on handle_view_created
...
Switching back to original workspace should be done only if workspace
was switched while appending new view.
8 years ago
Tony Crisci
4ab35df157
ipc: log sending of events
...
Log the sending of the events in the debug log. This makes ipc server events
easier to verify.
8 years ago
Tony Crisci
e1e15bb43e
ipc: recursive workspace containers in event
...
Recursively describe workspace containers in the workspace event. This is for
compatability with i3 and i3ipc libraries.
8 years ago
Tony Crisci
50901a0892
ipc: always include nodes in views
...
This is for i3 (and i3ipc library) compatability.
8 years ago
Mykyta Holubakha
e1b1d94a4e
Arrange windows after swapping containers
...
Fixes #833
8 years ago
D.B
132017d242
Fix 'workspace back_and_forth' and workspace_auto_back_and_forth clash
...
When workspace_auto_back_and_forth is enabled, workspaces get switched
twice with previously mentioned command, which is not the expected
behavior.
Removes one redundant creation of previous workspace.
8 years ago
Tony Crisci
81eb9ea12c
Simplify focus setting
...
Merge the main rendering paths of all containers to make focus setting a bit
simpler and easier to follow.
8 years ago
Tony Crisci
c98e91f01f
Use uintptr_t for ipc container id
...
This is for compatability with i3.
8 years ago
minus
b246799548
fixed uninitialized bar.wrap_scroll
8 years ago
Zandr Martin
9fa92951fe
remove unmanaged nodes from get_tree
8 years ago
Drew DeVault
31ce010861
Fix segfault in border.c
8 years ago
Tony Crisci
4344fe5011
bugfix: focus container on output when focused
...
Focus the container on the output (not the output itself) when an output is
focused.
This is intended to fix a bug where borders are not updated correctly when
switching the vt away/back to sway.
8 years ago
Tony Crisci
2f65100bee
Remove dead global locked_view_focus
...
The value of `locked_view_focus` is always false. Remove dead code associated
with this variable to simplify things.
8 years ago
Drew DeVault
2d907ef1f6
Merge pull request #811 from acrisci/feature/focus-container
...
Implement focus handling for containers
8 years ago
Zandr Martin
b18c169036
cache floating container size when fullscreening
8 years ago
Tony Crisci
fe608c80ae
Update view border when workspace is focused
...
When a workspace is focused, update the borders of all its child containers to
be focused to indicate the workspace container is focused.
8 years ago
Tony Crisci
d731d6a846
Bugfix: descend focus stack on new window focus
...
When switching back to a workspace after new window creation, it is now
necessary to descend the focus stack into the focused container of the
workspace to determine which container should get the focus. This is because
the `set_focused_container()` function no longer automatically descends into
the focus stack to find the correct view to focus.
8 years ago
Tony Crisci
b39249508f
Refactor functions to update container borders
...
Replace `update_view_border()` with `update_container_border()`. The latter
should handle both the case where the container is a view or if the container
has children.
8 years ago
Tony Crisci
f78d07d39b
Implement focus handling for containers
...
The previous implementation of focus handling assumed that only views can be
focused. Containers can also be focused with a command like `focus parent` or
`focus child`.
Change `set_focused_container()` to handle the case of the given container
being a container with children and update borders accordingly.
8 years ago
Zandr Martin
53f6b1f3b0
document `kill` command
8 years ago
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.
8 years ago
Zandr Martin
98aa59fdda
implement solid color rendering for swaybg
8 years ago
Zandr Martin
e6af5f8bdb
Merge branch 'master' of git://github.com/SirCmpwn/sway into x11-pids
8 years ago
D.B
c33e0ee629
revert border hiding to more recent version
8 years ago
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
8 years ago
Zandr Martin
c0683a0444
remove outdated (when wlc commit merged) comment
8 years ago
Zandr Martin
d0a0d5e03c
update handler to get pid from wlc for all views
8 years ago
Drew DeVault
3f83968d30
Fix swaybg sizing on hidpi outputs
8 years ago
Drew DeVault
9b24af1c22
Document scale factor configuration in sway(5)
8 years ago
Drew DeVault
9661272224
Merge remote-tracking branch 'origin/hidpi'
8 years ago
Zandr Martin
a3980d456d
third try for #678
8 years ago
Drew DeVault
cad085ed9d
Update IPC JSON responses for HiDPI setups
8 years ago
Drew DeVault
11e7ca044c
Update hidpi support to latest wlc API
8 years ago
Drew DeVault
6ea02f3064
Initial pass on HiDPI support
8 years ago
Mykyta Holubakha
cf8ef2aea2
Initialize client's subscribed events
8 years ago
Drew DeVault
d07eaed79f
Merge pull request #793 from thejan2009/workspace_layout_first_window_fix
...
bugfix: invisible windows on empty workspace with tabbed/stacked layout
8 years ago
Drew DeVault
ee67c5bee3
Merge pull request #791 from acrisci/feature/focus-child
...
Implement `focus child` command
8 years ago
Drew DeVault
d03266a77a
Merge pull request #792 from acrisci/feature/render-focused-stack-children-focused
...
Render focused stack/tab children focused
8 years ago
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.
8 years ago
D.B
a46cf77549
bugfix: windows on empty workspaces with layout tabbed/stacked would spawn with 0x0 geometry
8 years ago
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.
8 years ago
Tony Crisci
88b7cbe314
Implement `focus child` command
...
The `focus child` command focuses the child container within the selected
container.
8 years ago
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.
8 years ago
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.
8 years ago
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.
8 years ago
D.B
80858c1f57
don't passthrough a floating_scroll event to focused window
8 years ago
Drew DeVault
643bd8f158
Merge pull request #779 from thejan2009/smart-gaps-outer
...
Hide outer gaps too when smart_gaps is on
8 years ago
D.B
f16cb1464f
properly hide bottom and right borders
8 years ago
Zandr Martin
3137615838
fix regression in hide_edge_borders
8 years ago
D.B
d61b59cad1
outer gap 0 with smart_gaps on
8 years ago
D.B
03b0180c30
rename ws to workspace for clarity
8 years ago
D.B
b893f07ce1
calculate borders for hiding from workspace geometry
8 years ago
Mykyta Holubakha
a2bc6f3bfd
Arrange backgrounds only when required
8 years ago
Mykyta Holubakha
f022628a2e
Handle transient_for
8 years ago
Mykyta Holubakha
f52daa26c9
Unite describe_view and describe_window
8 years ago
Mykyta Holubakha
e5c7b019ff
Fix dispatching and assigning events
8 years ago
Mykyta Holubakha
2029fef6b8
More progress on window events
8 years ago
Mykyta Holubakha
976e48d79f
Initial work on window events
8 years ago
Drew DeVault
095353d91d
Remove arrange_windows from post-render
...
Fixes #741
8 years ago
minus
50b09937b2
clean up apply_input_config
8 years ago
Drew DeVault
5a1d95ac2a
Move backgrounds to back after arrange_windows
...
Fixes #769
8 years ago
Drew DeVault
c0e4522202
Merge pull request #764 from deklov/move-position-bug-02
...
Do not crash when handling the command 'move position'
8 years ago
D.B
5d250f3da6
Construct titles of nested tabbed/stacked containers from app_id instead of title
8 years ago
David Eklov
d9eb49f3b1
Add missing entry to list of accepted arguments for the move command
8 years ago
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.
8 years ago
Drew DeVault
2530f952c9
Fix clang warning
8 years ago
Drew DeVault
ff363aa7f7
Fix bug with views behind backgrounds on ws switch
8 years ago
Drew DeVault
6d971af5c3
Turn swaybg into a shell surface
8 years ago
Drew DeVault
3bb880bf20
Implement configurable wrapping on bar ws scroll
8 years ago
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).
8 years ago
Hummer12007
cf7c6c5822
Fix a memory leak
8 years ago
D.B
ad7605675e
refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use where needed
8 years ago
David Eklov
5c4f52f953
Set panels' geometries correctly and don't render them explicitly
...
Panels were explicitly rendered by calling wlc_surface_render in
handle_output_pre_render. Calling wlc_surface_render does not set the
surface's geometry (like wlc_view_set_geometry does). Sway did not call
wlc_view_set_geometry for panels, so wlc defaulted their geometry to be at
the origin. This is not correct for bars unless their location is top.
Furthermore, for a surface to receive pointer events, its mask has to be
set to visible. This causes wlc to render these surfaces, causing panels
and backgrounds to be rendered twice.
This commit makes panels and surfaces visible, sets the correct geometries
and removes the code that explicitly rendered them.
8 years ago
David Eklov
4bb45abc46
Don't treat backgrounds as shell surfaces
...
This code had some issues. Remove it now so that we can start clean and fix
it later.
8 years ago
Mykyta Holubakha
c503bf1342
Suspend destruction of wss when creating views
8 years ago
Mykyta Holubakha
a2bb280172
Spawn new views to target ws's focused container
8 years ago
Mykyta Holubakha
ea7917784d
Fix build on x86
8 years ago
D.B
ee67cd0ba1
Fix tabbed/stacked corner case #742
...
Tabbed/stacked containers are now created only if a view is present on
the workspace. If a view is created on previously empty tabbed/stacked
workspace, it gets wrapped in a container.
9 years ago
Zandr Martin
c65d6e6e95
get_tree json fixes
...
- null pointer check against container names
- use actual json null values instead of "null" strings
- add "visible" property to all containers
9 years ago
David Eklov
51204b33c1
Enable backgrounds and panels to be shell surfaces
...
Prior to this commit all windows (e.g. shell surfaces) were handled the same
way in handle_view_created. Since backgrounds and panels have to be treated
differently, they could not be shell surfaces. This changes checks whether
a client is a background or a panel in handle_view_created and exists to
let them be dealt with elsewhere.
9 years ago
Zandr Martin
2f54057623
I think this fixes #678
9 years ago
Zandr Martin
e07b8c8d7c
Merge branch 'master' into get-tree-command
9 years ago
Zandr Martin
f8a94f2f4b
fix typo in ipc-json.c
9 years ago
Zandr Martin
15a324b0d3
implement `get_tree` command
9 years ago
Zandr Martin
d5e4fff345
resize command updates ( #713 )
9 years ago
Zandr Martin
aced6daa19
match i3 syntax for `resize set`
9 years ago
Drew DeVault
7144fb9fc3
Spawn windows as floating if they have a parent
...
Fixes #604
9 years ago
David Eklov
26842ff383
Add get_log_level() to encapsulate v (current log level)
...
This patch also makes all global variable in log.c static.
9 years ago
Mykyta Holubakha
bfdda1505e
Check if found ws is focused in new view handler
...
Fixes #714 , by preventing change of focus from a window to the whole ws
9 years ago
Drew DeVault
71f710cf0f
Minor fix to warning messages
9 years ago
Hummer12007
7870a197fc
Added a null check in tabbed_stacked_parent
...
This fixes a segfault, when trying to get parent of the workspace/root container/(?), as it is not assuered that the view's parent node is not null in the loop
9 years ago
Zandr Martin
a6f4bf60f2
Merge branch 'master' into set-size-command
9 years ago
Zandr Martin
889618d3ee
implement resize command for absolute dimensions
9 years ago
Zandr Martin
9ecb43ea3b
couple small fixes
9 years ago
Zandr Martin
2298143d09
cleanup + add timeouts for pid_workspace list
9 years ago
Zandr Martin
66caee645c
Merge branch 'master' into assign-command
9 years ago
Zandr Martin
beaa03344e
clean up pid/workspace stuff
9 years ago
Drew DeVault
cb0cc32265
Many improvements to man pages
9 years ago
Zandr Martin
b00feb25ea
trigger bg change on config reload
9 years ago
Zandr Martin
03d79b41c7
semi-working (only non-client/server wayland apps)
9 years ago
thuck
3710cd6963
Fix segfault when using include with *
...
This should fix the issue #681
9 years ago
Zandr Martin
0f1859ed25
messy, unfinished version
9 years ago
Denis Doria
cdd8664198
Merge branch 'master' into variables_corner_cases
9 years ago
Roosembert Palacios
230591fa4e
Common: Readline: Ignore newline on '\' escaped line ends.
...
Escape line return when reading from a file with the '\' character.
Similar to shell scripts.
Signed-off-by: Roosembert Palacios <roosembert.palacios@epfl.ch>
9 years ago
Roosembert Palacios
e8c0ef98b1
Sway: Configuration: Support for escaping line breaks.
...
Escape line return in configuration file with the '\' character. Similar
to shell scripts.
Signed-off-by: Roosembert Palacios <roosembert.palacios@epfl.ch>
9 years ago
Zandr Martin
d4eb964fd1
document `assign` command
9 years ago
Denis Doria
3c3e98b1a3
Merge branch 'master' into variables_corner_cases
9 years ago
Drew DeVault
fdefd17391
Merge pull request #695 from zandrmartin/document-client-commands
...
add documentation for client commands
9 years ago
Zandr Martin
3746542462
add documentation for client commands
9 years ago
wdbw
4f9af09f23
Add missing layout modes in sway(5)
9 years ago
Denis Doria
29eb3bf746
Put w to uppercase just to keep consistency between warnings
9 years ago
Denis Doria
bf2298e0a5
Includes $ for variables without it
9 years ago
thuck
f55b5a4982
Fix identation issue
9 years ago
thuck
431013db72
Merge branch 'master' of https://github.com/SirCmpwn/sway into variables_corner_cases
9 years ago
thuck
e4f80877be
Fix output command when varible not set
...
This should fix the corner case where a variable is not assigned, but used anyway.
This should solve partially the issue #681 .
9 years ago
thuck
1ab3e1023e
Including error message when variable do not start with $
9 years ago
Zandr Martin
9ccc92705e
implement stable sort for lists
...
also change sort_workspaces() to use it
9 years ago
Denis Doria
2256a9b784
Sync master
...
Merge branch 'master' of https://github.com/SirCmpwn/sway into floating_size_conf
9 years ago
Denis Doria
b692a6d31a
Initial implementation for floating_maximum_size
9 years ago
Zandr Martin
3fac9705b0
redo smart_gaps/hide_edge_borders fix
9 years ago
Denis Doria
009eaccd42
Clean up not used variables
9 years ago
Denis Doria
b6685da35b
Update man page with information about floating_maximum_size
9 years ago
Denis Doria
0ad7857f90
Included option floating_minimum_size
...
Values cannot be negative or 0; if so uses the default 75x50.
Uses the same syntax as i3: floating_minimum_size <width> x <height>, although the x can be anything.
9 years ago
Zandr Martin
8a81f52450
Merge branch 'master' of github.com:SirCmpwn/sway into fix-swaybar-in-08bef67
9 years ago
Zandr Martin
1b4d61662c
fix swaybar problem in 08bef67
9 years ago
Denis Doria
3c4c623012
Merge branch 'master' into floating_size
9 years ago
Denis Doria
f1d5b89d3e
Initial work for floating view with sane values
9 years ago
Eric Engestrom
08bef67f85
sway: refactor ipc_client_handle_command()
...
This fixes a few mem leaks, as well as remove a false-positive error msg
in IPC_GET_BAR_CONFIG
9 years ago
Eric Engestrom
9d7d73df7f
sway: fix IPC resource leak
9 years ago
Drew DeVault
3b1c125e18
Remove bar position left:right from docs
...
And adds a warning about using them (currently these are not supported
by swaybar).
9 years ago
Zandr Martin
d291a29f30
enforce workspace output assignents
...
when creating a new output, move to that output all extant workspaces
that are assigned to that output.
(unrelated) remove comment that was no longer applicable, fix spacing in
an assignment
9 years ago
Zandr Martin
7df38ce9da
remove alphabetic sorting from sort_workspaces
...
also add a couple missing spaces to container.c (unrelated)
9 years ago
Zandr Martin
c6c3a8e758
Implement sort_workspaces() function for outputs.
...
This seems to have resolved issue #669 for me.
9 years ago
Zandr Martin
164f384d83
set focus on fullscreen view when changing focus
9 years ago
Mykyta Holubakha
16dc31f33b
Concatenate output cmd args, fixes #654
9 years ago
Mikkel Oscar Lyderik
f33cdc0f2f
Remove stray whitespace
9 years ago
Mikkel Oscar Lyderik
2eb02b6320
Rearrange output when setting background
...
Fix #659
9 years ago
Jasen Borisov
870a7aaad9
Fix issue #661 .
...
Borders are now drawn correctly (same behavior as i3) for tabbed and
stacked containers, when the children have 'border none' set.
9 years ago
Mykyta Holubakha
e73dde3b10
Support floating_scroll sideways
9 years ago
Drew DeVault
5b0af661b0
Revert "sway/container.c: fix segfault where view is assigned prematurely"
9 years ago
Daniel Lockyer
2fb4e5401c
sway/container.c: fix segfault where view is assigned prematurely
9 years ago
Mikkel Oscar Lyderik
c80ad015ff
Prevent changing layout when focusing float window
...
The layout command should only work with titled windows, thus it should
have no effect when a floating window has focus.
Should fix #643
9 years ago
Mykyta Holubakha
500ee0a731
Allow to set relative path for wallpapers in config
9 years ago
Mykyta Holubakha
0c495eecde
Remove FSB_GAPS_INNER and FSB_GAPS_OUTER
9 years ago
Mykyta Holubakha
394a5d36cb
Documented floating_scroll
9 years ago
Mykyta Holubakha
0423c41a0f
Implemented configurable floating scroll behavior
9 years ago
Drew DeVault
6abdc07559
Merge pull request #638 from neosilky/memleak
...
sway/main.c: simplify free'ing by switching to the helper method
9 years ago
Daniel Lockyer
b41097c085
sway/config.c: fix double free issue as we need to store path in list
9 years ago
Daniel Lockyer
c9d634414a
sway/main.c: simplify free'ing by switching to the helper method
9 years ago
Drew DeVault
0cefde87e4
Merge pull request #628 from 1ace/fix/ipc-path
...
Always terminate ipc path
9 years ago
Raman Varabets
a9123c38b2
fix a typo (horiziontal -> horizontal)
9 years ago
Eric Engestrom
3d6a3413b8
sway: always terminate ipc path
9 years ago
Mikkel Oscar Lyderik
ae5164f1d4
Update view title of tabbed/stacked windows
...
Requires Cloudef/wlc@80bf003
Fix #623
9 years ago
Eric Engestrom
e53ba08626
sway: fix potential buffer overflow
9 years ago
Jasen Borisov
de007c9b58
Add input cmd for setting pointer accel profile.
9 years ago
Mikkel Oscar Lyderik
1f8b6b86dd
Remove premature break
9 years ago
Daniel Lockyer
682efbb7dd
sway/config.c: Initialise struct value
9 years ago
Daniel Lockyer
0ece17c717
sway/workspace.c: Cleanup some un-free'd memory
9 years ago
Daniel Lockyer
e1fa51a152
sway/config.c: Move the wordfree call before the if statement so it is always called
9 years ago
Daniel Lockyer
06986e58b8
sway/config.c: Change to the useful free_cmd_results helper method
9 years ago
Daniel Lockyer
01c2b5f2d6
sway/config.c: move free call to after sway_log
9 years ago
Daniel Lockyer
b8722ecd5f
sway/config.c: Leading on from cdf017c
, we need to free path
9 years ago
Daniel Lockyer
e077ebdc72
sway/config.c: res->input is a malloc'ed section which wasn't freed
9 years ago
Daniel Lockyer
cdf017ceea
sway/config.c: wordexp has a corresponding wordfree which was never used
...
I had to change the assignment to path to be wrapped by strdup as we
pass the data out of the method.
9 years ago
Daniel Lockyer
c225bcacee
sway/config.c: config_home is the result of a malloc but was never freed
9 years ago
Daniel Lockyer
5a7099eee0
sway/commands.c: add some free calls to release allocated memory
9 years ago
Drew DeVault
3be3867474
Fix oversight in ebdce71
9 years ago
Drew DeVault
ebdce719b4
Fix -Wunused-result problems
9 years ago
Mikkel Oscar Lyderik
b53b15b477
Fix uninitialized variable
9 years ago
Mikkel Oscar Lyderik
1fb9489032
Fix bindcode by offsetting xkb keycode by 8
...
The bindcode has to be offset by 8 to match the keycode we get from wlc.
https://github.com/xkbcommon/libxkbcommon/blob/master/xkbcommon/xkbcommon.h#L160
9 years ago
Tomáš Čech
468ddfb34d
Fix missing include paths
...
When headers were installed in more sofisticated places (but package
config knows it right), it revealed missing paths in CMake
configuration. Lets fix it.
9 years ago
Mikkel Oscar Lyderik
ddd5b69b99
border: clear buffer on fullscreen views
...
This patch makes sure to clear the border buffer of fullscreen view so
the border doesn't get drawn behind a fullscreen view, which would be
visible if the view was transparent.
9 years ago
Mikkel Oscar Lyderik
27066c6328
Only check tabbed_stacked_parent for focused windows
9 years ago
Mikkel Oscar Lyderik
05b4965a99
Remove commented code
9 years ago
Mikkel Oscar Lyderik
856ac7d5cc
Remove unused function
9 years ago
Mikkel Oscar Lyderik
5a22c0f1c0
Don't send invisble view to back
9 years ago
Mikkel Oscar Lyderik
5886ee156e
Use correct geometry for nested containers
9 years ago
Mikkel Oscar Lyderik
6c7ed7e7cb
Add title to nested tabbed/stacked containers
9 years ago
Mikkel Oscar Lyderik
5492277f0c
Disable inner gaps when in tabbed/stacked mode
9 years ago
Mikkel Oscar Lyderik
3e1f78ab26
Add support for nested tabbed/stacked containers
9 years ago
Mikkel Oscar Lyderik
3955c66ce8
Use tabs for indentation
9 years ago
Mikkel Oscar Lyderik
969f76a1a4
Make floating border fixes work with tabbed/stacked code
9 years ago
Mikkel Oscar Lyderik
e226b20bd8
Reapply prev layout when exiting tabbed/stacked
9 years ago
Mikkel Oscar Lyderik
a0cebb7c5a
Improve move command with tabbed/stacked layout
9 years ago
Mikkel Oscar Lyderik
d26658fb35
Correctly determine default layout
9 years ago
Mikkel Oscar Lyderik
8d700fe008
Fix problems with floating windows
...
Makes any tabbed/stacked layout a container to separate from floating
windows which may be attached to a workspace.
9 years ago
Mikkel Oscar Lyderik
ec7ff769c7
Tabbed and stacked layout
9 years ago
Mykyta Holubakha
09d69f606a
Renamed pango_markup config options
9 years ago