Zandr Martin
c0683a0444
remove outdated (when wlc commit merged) comment
9 years ago
Zandr Martin
d0a0d5e03c
update handler to get pid from wlc for all views
9 years ago
Drew DeVault
3f83968d30
Fix swaybg sizing on hidpi outputs
9 years ago
Drew DeVault
9b24af1c22
Document scale factor configuration in sway(5)
9 years ago
Drew DeVault
9661272224
Merge remote-tracking branch 'origin/hidpi'
9 years ago
Zandr Martin
a3980d456d
third try for #678
9 years ago
Drew DeVault
cad085ed9d
Update IPC JSON responses for HiDPI setups
9 years ago
Drew DeVault
11e7ca044c
Update hidpi support to latest wlc API
9 years ago
Drew DeVault
6ea02f3064
Initial pass on HiDPI support
9 years ago
Mykyta Holubakha
cf8ef2aea2
Initialize client's subscribed events
9 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
9 years ago
Drew DeVault
ee67c5bee3
Merge pull request #791 from acrisci/feature/focus-child
...
Implement `focus child` command
9 years ago
Drew DeVault
d03266a77a
Merge pull request #792 from acrisci/feature/render-focused-stack-children-focused
...
Render focused stack/tab children focused
9 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.
9 years ago
D.B
a46cf77549
bugfix: windows on empty workspaces with layout tabbed/stacked would spawn with 0x0 geometry
9 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.
9 years ago
Tony Crisci
88b7cbe314
Implement `focus child` command
...
The `focus child` command focuses the child container within the selected
container.
9 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.
9 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.
9 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.
9 years ago
D.B
80858c1f57
don't passthrough a floating_scroll event to focused window
9 years ago
Drew DeVault
643bd8f158
Merge pull request #779 from thejan2009/smart-gaps-outer
...
Hide outer gaps too when smart_gaps is on
9 years ago
D.B
f16cb1464f
properly hide bottom and right borders
9 years ago
Zandr Martin
3137615838
fix regression in hide_edge_borders
9 years ago
D.B
d61b59cad1
outer gap 0 with smart_gaps on
9 years ago
D.B
03b0180c30
rename ws to workspace for clarity
9 years ago
D.B
b893f07ce1
calculate borders for hiding from workspace geometry
9 years ago
Mykyta Holubakha
a2bc6f3bfd
Arrange backgrounds only when required
9 years ago
Mykyta Holubakha
f022628a2e
Handle transient_for
9 years ago
Mykyta Holubakha
f52daa26c9
Unite describe_view and describe_window
9 years ago
Mykyta Holubakha
e5c7b019ff
Fix dispatching and assigning events
9 years ago
Mykyta Holubakha
2029fef6b8
More progress on window events
9 years ago
Mykyta Holubakha
976e48d79f
Initial work on window events
9 years ago
Drew DeVault
095353d91d
Remove arrange_windows from post-render
...
Fixes #741
9 years ago
minus
50b09937b2
clean up apply_input_config
9 years ago
Drew DeVault
5a1d95ac2a
Move backgrounds to back after arrange_windows
...
Fixes #769
9 years ago
Drew DeVault
c0e4522202
Merge pull request #764 from deklov/move-position-bug-02
...
Do not crash when handling the command 'move position'
9 years ago
D.B
5d250f3da6
Construct titles of nested tabbed/stacked containers from app_id instead of title
9 years ago
David Eklov
d9eb49f3b1
Add missing entry to list of accepted arguments for the move command
9 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.
9 years ago
Drew DeVault
2530f952c9
Fix clang warning
9 years ago
Drew DeVault
ff363aa7f7
Fix bug with views behind backgrounds on ws switch
9 years ago
Drew DeVault
6d971af5c3
Turn swaybg into a shell surface
9 years ago
Drew DeVault
3bb880bf20
Implement configurable wrapping on bar ws scroll
9 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).
9 years ago
Hummer12007
cf7c6c5822
Fix a memory leak
9 years ago
D.B
ad7605675e
refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use where needed
9 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.
9 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.
9 years ago
Mykyta Holubakha
c503bf1342
Suspend destruction of wss when creating views
9 years ago
Mykyta Holubakha
a2bb280172
Spawn new views to target ws's focused container
9 years ago
Mykyta Holubakha
ea7917784d
Fix build on x86
9 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