Age | Commit message (Collapse) | Author |
|
Add using_csd variable to transaction state
|
|
This fixes a race condition flicker when unfloating a view which uses
client side decorations.
When the view is floated it has using_csd = true, so the decorations are
not drawn. When unfloating it it changes to false, but this change
wasn't part of transactions so it could potentially render the
decorations around the view while it's waiting for the transaction to
apply.
|
|
Default to the previous workspace if the current one has no focused windows
|
|
|
|
Simplify transactions
|
|
Use list_find in more places and refactor/fix workspace prev_next functions
|
|
The original purpose of this commit is to replace some for loops with
list_find. But while doing this I found the workspace_prev_next_impl
functions to be difficult to read and also contained a bug, so I
refactored them and fixed the bug.
To reproduce the bug:
* Have two outputs, where the left output has workspaces 1, 2, 3 and the
right output has workspaces 4, 5, 6. Make workspace 2 focused_inactive
and workspace 4 focused.
* Run `workspace prev`.
* Previously it would visit the left output, then apply `workspace prev`
to workspace 2, which focuses workspace 1.
* Now it will focus the rightmost workspace on the left output
(workspace 3).
The refactoring I made to the workspace functions are:
* Added the static keyword.
* They now accept an int dir rather than bool, to avoid an unnecessary
conversion.
* Rather than preparing start and end variables for the purpose of
iterating, just iterate everything.
* Replace for loops with list_find.
* Don't call workspace_output_prev_next_impl (this fixes the bug).
|
|
Commit 4b8e3a885be74c588291c51f798de80bd81a92db makes it so only one
transaction is committed (ie. configures sent) at a time. This commit
removes the now-unnecessary code which was used to support concurrent
committed transactions.
* Instead of containers storing a list of instructions which they've
been sent, it now stores a single instruction.
* Containers now have an ntxnrefs property. Previously we knew how many
references there were by the length of the instruction list.
* Instructions no longer need a ready property. It was used to avoid
marking an instruction ready twice when they were in a list, but this is
now avoided because there is only one instruction and we nullify the
container->instruction pointer when it's ready.
* When a transaction applies, we no longer need to consider releasing
and resaving the surface, as we know there are no other committed
transactions.
* transaction_notify_view_ready has been renamed to
view_notify_view_ready_by_serial to make it consistent with
transaction_notify_view_ready_by_size.
* Out-of-memory checks have been added when creating transactions and
instructions.
|
|
Implement resizing tiled containers via cursor
|
|
Use assigned workspace name for output
|
|
Instead of relying on bindings being configured, primarily source
new workspace names from workspace-output assignments.
Fixes #2435
|
|
|
|
This fixes an issue where views might commit to a transaction ahead of
the first one, and applying the first transaction causes us to save a
buffer of the wrong size.
|
|
Rather than resizing the split within the container.
|
|
|
|
|
|
|
|
There was a separate function dispatch_cursor_button_floating which
dealt with the resize and move operations, but as resize is not really
limited to floating views, it doesn't make as much sense to have this
separate. So both functions are now combined into one.
Additionally, dispatch_cursor_button now uses a pattern of returning
early instead of using else-ifs.
|
|
* The OP_RESIZE seat operation has been renamed to OP_RESIZE_FLOATING,
and OP_RESIZE_TILING has been introduced.
* Similar to the above, seat_begin_resize and handle_resize_motion have
been renamed and tiling variants introduced.
* resize.c's resize_tiled has to be used, so container_resize_tiled has
been introduced in resize.c to allow external code to call it.
|
|
Man page: Correct argument format for output position config
|
|
|
|
Fix container_has_ancestor crash
|
|
Fixes #2450
|
|
Remove container_for_each_descendant_bfs
|
|
Remove container_has_child
|
|
The function was not used.
Also renames container_for_each_descendant_dfs to just
container_for_each_descendant.
|
|
In all cases you can use container_has_ancestor with the arguments
swapped, which is faster than container_has_child.
|
|
Fix memory leak in swaynag
|
|
|
|
xwayland: fix unmanaged surfaces order
|
|
|
|
Finish resize commands
|
|
|
|
Unlike i3, this implementation allows px measurements.
Also fixes a sane size check.
|
|
|
|
|
|
Don't call swaynag_log for bg when not reading
|
|
|
|
Allow a fallback color to be specified for swaybg
|
|
This allows for a color to be set when the wallpaper does not fill the
entire output. If specified, the fallback color is also used when the
image path is inaccessible.
|
|
[RFC] Fix segv when sway is terminating
|
|
|
|
|
|
These are obsolete, we don't require them anymore.
|
|
Fix focus when clicking floating decorations
|
|
|
|
|
|
|
|
It's not right for container_at_view to only return the swayc if a
surface was clicked.
|
|
Implement move to workspace on a floating container
|