| Commit message (Collapse) | Author | Age |
... | |
|\ \ \
| | | |
| | | | |
Fix swaylock version string
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | | |
The referenced constants were not defined so it always printed "version
unknown".
Also it would exit with code 1. It now exits with code 0.
|
|\ \ \
| | | |
| | | | |
Sway clients: Exit gracefully when compositor is unavailable
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
Fix crash in swap command
|
|/ / /
| | |
| | |
| | |
| | | |
When swapping containers that are in the root of the workspace, parent
will be NULL.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Previously we would compare the last focus's workspace with the new
focus's workspace to determine if we need to emit an IPC
workspace::focus event. This doesn't work when moving the focused
container to a new workspace.
This adds a workspace property to the seat which stores the last emitted
workspace::focus workspace. Using this method, after moving the
container, refocusing it will trigger exactly one workspace::focus
event: from the old workspace to the new workspace.
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This introduces seat_set_raw_focus: a function that manipulates the
focus stack without doing any other behaviour whatsoever. There are a
few places where this is useful, such as where we set focus_inactive
followed by another call to set the real focus again. With this change,
the notify argument to seat_set_focus_warp is also removed as these
cases now use the raw function instead.
A bonus of this is we are no longer emitting window::focus IPC events
when setting focus_inactive, nor are we sending focus/unfocus events to
the surface.
This also fixes the following:
* When running `move workspace to output <name>` and moving the last
workspace from the source output, the workspace::focus IPC event is no
longer emitted for the newly created workspace.
* When splitting the currently focused container, unfocus/focus events
will not be sent to the surface when giving focus_inactive to the newly
created parent, and window::focus events will not be emitted.
|
|\ \
| | |
| | | |
Establish sway-output(5)
|
| | | |
|
|\ \ \
| |/ /
|/| | |
Implement common event loop for swaybar and swaylock
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
timerfd doesn't work on the BSDs, so this replaces it with a timespec
for the expiry and uses a poll timeout to check the timers when needed.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* The loop functions are now prefixed with `loop_`.
* It is now easy to add timers to the loop.
* Timers are implemented using pollfd and timerfd, rather than manually
checking them when any other event happens to arrive.
|
|/ / |
|
| | |
|
|\ \
| | |
| | | |
Bar mode/hidden_state events
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Previously, when the bar was hidden, the height would be set to 0.
This meant that if the bar was empty upon reshow, it would not render
since the height was still 0, which made it seem there was a problem.
Now, the height is not reset, but the width is, to indicate upon reshow
that the layer surface needed reconfiguring.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Since wayland does not currently allow swaybar to create global
keybinds, this is handled within sway and sent to the bar using a custom
event, so as not to pollute existing events, called bar_state_update.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
As well as adding the hidden_state property to the bar config struct,
this commit handles barconfig_update events when the mode or
hidden_state changes, and uses a new function determine_bar_visibility
to hide or show the bar as required, using, respectively,
destroy_layer_surface, which is also newly added, and add_layer_surface,
which has been changed to allow dynamically adding the surface.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The received json is handled outside of the case statement, which will
allow better extensibility.
This commit also introduces the variable bar_is_dirty, the return value
signifying whether the bar requires rendering.
|
| | |
| | |
| | |
| | |
| | |
| | | |
This distinguishes the binding mode from the distinct config mode, as
well as removing mode_pango_markup from the config struct where it
should not be present.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
This adds barconfig_update to the list of subscribed events, as well as
checking when the other events need to be subscribed to.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
This adds an id property to the bar, which will be used to filter
barconfig_update events
|
|/ /
| |
| |
| |
| | |
Previously, if a change was sent to all bars, it would only actually
change the first bar it encountered, due to return value handling
|
|\ \
| | |
| | | |
Fix bar subcommand handler structs and selection
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Allows bar-subcommand to be a valid bar-ids
Destroys runtime created bar if trying to use a config only subcommand
Allow subcommands (except for id) to be ids
|
| | |
| | |
| | |
| | |
| | | |
Ideally, this will be replaced with an IPC barconfig_update event in the
near future
|
| | | |
|
|\ \ \
| | | |
| | | | |
Fix clear_password_buffer
|
|/ / / |
|
| | | |
|
|\ \ \
| |/ /
|/| | |
Fix edge gaps
|
| |\ \
| |/ /
|/| | |
|
|\ \ \
| | | |
| | | | |
Fix crash when view maps while locked
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When locked, there is no active workspace so it must find the
focus_inactive workspace instead.
Additionally, this adds a check for if a view maps while there are no
outputs connected and handles it gracefully.
|
|/ /
| |
| |
| | |
While allowing negative values for the outer gaps it is still prevented that negative values move windows out of the container. This replaces the non-i3 option for edge_gaps.
|
|\ \
| | |
| | | |
Fix pixel leaks when using fractional scaling
|