Commit graph

6753 commits

Author SHA1 Message Date
Tuyen Pham
23b94ca6d7 Merge branch 'master' of github.com:tmpm697/Swea 2021-07-17 11:55:19 +00:00
Tuyen Pham
6639c655c9 don't want to readme conflict with upstream 2021-07-17 11:55:01 +00:00
tmpm697
756c365e2d
Merge pull request #4 from tmpm697/patch/sway-borders
Patch/sway borders
2021-07-17 18:51:06 +07:00
Tuyen Pham
b56cf3a7ea correct patch 2021-07-17 11:48:38 +00:00
Tuyen Pham
d2a4e37722 correct patch 2021-07-17 11:41:09 +00:00
tmpm697
0963dd04f1
Merge pull request #3 from tmpm697/patch/sway-borders
Patch/sway borders
2021-07-17 18:31:28 +07:00
Tuyen Pham
66c93fc5af add contrib/borders folder 2021-07-17 11:28:34 +00:00
Tuyen Pham
420395ed8e add patch/sway-borders 2021-07-17 11:23:10 +00:00
Tuyen Pham
981717d285 fix readme 2021-07-16 19:36:17 +00:00
Tuyen Pham
90a3c2894e fix readme 2021-07-16 19:35:35 +00:00
Tuyen Pham
b71f0fb9c7 fix readme 2021-07-16 19:34:56 +00:00
Tuyen Pham
89cd2dde20 fix readme 2021-07-16 17:43:33 +00:00
tmpm697
b4dc5824c9 Update issue templates 2021-07-16 17:42:45 +00:00
tmpm697
073a6ef193 Update issue templates 2021-07-16 17:41:15 +00:00
tmpm697
68a313ae6d Update issue templates 2021-07-16 17:40:05 +00:00
tmpm697
6a457de9ef Update issue templates 2021-07-16 17:36:36 +00:00
Tuyen Pham
7e1b02dec0 fix readme 2021-07-16 16:46:49 +00:00
Tuyen Pham
ddd22434b4 fix readme 2021-07-16 16:29:03 +00:00
Tuyen Pham
5655aaa5ea merge issue exmpale in readme 2021-07-16 16:27:30 +00:00
Tuyen Pham
b49a3c72d9 fix readme 2021-07-16 14:36:38 +00:00
Tuyen Pham
5a9ea73930 update readme 2021-07-16 14:34:48 +00:00
tmpm697
b320abd92d
Merge branch 'swaywm:master' into master 2021-07-16 19:58:04 +07:00
Hugo Osvaldo Barrera
96102184ab grimshot: Exit 1 on cancellation
Whenever the selection is cancelled by the user, exit 1, since not
screenshot has been taken.
2021-07-10 13:03:42 +02:00
tmpm697
f89d239bb4
Merge branch 'swaywm:master' into master 2021-07-09 15:34:53 +07:00
Simon Ser
7114030159 Add support for touch frame events
Update for the breaking change in [1].

[1]: https://github.com/swaywm/wlroots/pull/3001
2021-07-08 09:18:20 +02:00
Tuyen Pham
eac0518784 minor fix, correct cmd name 2021-07-07 17:34:12 +00:00
Tuyen Pham
8a56b699ad Do not VTs switch, block tty access 2021-07-07 16:37:15 +00:00
Simon Ser
4832fc937f Update wlr_box includes
Update for the breaking change in [1].

[1]: https://github.com/swaywm/wlroots/pull/3011
2021-07-07 11:29:14 +02:00
Dudemanguy
c41dc33590 container: ignore borders in fullscreen windows
When setting the geometry from content for floating windows, the
coordinates for borders are normally taken into account. However in the
case of a floating fullscreen window, we should not be doing this. Since
the content of the container takes the space of the entire output, this
causes the calculated borders to neccesarily be outside of the output.
This later causes a problem when sending surface entrance events since
in a multi-monitor setup, the border coordinates will overlap with
another output despite the surface not actually being on that output at
all. The fix is to just ignore border coordinates for a floating
fullscreen container since fullscreen, of course, does not actually have
any borders. Fixes #6080.
2021-07-06 22:54:24 +02:00
Simon Ser
22226560e3 tree/container: fix indentation 2021-07-05 10:09:39 +02:00
Jack Byrne
1b8719f167 Change 'Danish' to 'Dansk' in README
Danish is the only language in the README that is not named in its own language.

<sorry for the frivolity but the inconsistency bugs me>
2021-06-30 16:16:53 +02:00
Simon Ser
56733bc6fe ci: make Meson warnings fatal
New warnings can be hard to notice in CI, since CI will just pass in
that case. Meson sometimes uses warnings for important mistakes, e.g.
invalid option.

Let's turn warnings into errors so that we can spot these more easily.
2021-06-30 13:37:00 +02:00
Simon Ser
151193b4cd build: use ExternalProgram.full_path instead of path
ExternalProgram.path has been deprecated.
2021-06-30 13:37:00 +02:00
Simon Ser
5f3773f21e build: use Dependency.get_variable instead of get_pkgconfig_variable
Dependency.get_pkgconfig_variable has been deprecated.
2021-06-30 13:37:00 +02:00
Simon Ser
8348178c66 build: use meson.global_build_root()
meson.build_root() is deprecated.

References: https://github.com/mesonbuild/meson/pull/8629
2021-06-30 13:37:00 +02:00
Simon Ser
5cdce42d1b contrib: drop incr_version script
This isn't used anymore.
2021-06-24 18:35:00 +02:00
Simon Ser
c53ef02385 build: bump wlroots dependency to 0.15.0 2021-06-23 14:32:31 +02:00
Kenny Levinsen
4df9f49dc1 ci: Test wlroots static linking 2021-06-23 09:55:36 +02:00
Kenny Levinsen
80315217f7 input: Move get_current_time_msec in from util
get_current_time_msec is only used in cursor.c, so we can move it in and
make it static. This is primarily intended to avoid a symbol collision
with wlroots, which we unfortunately do not have a good solution for
yet.
2021-06-23 09:55:36 +02:00
Ragnar Groot Koerkamp
f81dc1ecc0 Update clang format to better match existing code 2021-06-22 20:21:45 +02:00
Ragnar Groot Koerkamp
c0c4e260c4 Revert "Add workspace {prev,next}_on_output --create"
This reverts commit 487c83f0de.

The --create flag is undocumented, not in i3, and at least partially
broken (#5913), so this removes the feature.
2021-06-22 19:00:31 +02:00
novenary
dbc326ba84 Don't apply hide_edge_borders to any floating container
This fixes the following scenario:
- Place a floating window so its border is right at the edge of the
  screen
- Create a new split
- The border disappears
- Moving the window does not restore the border
2021-06-20 15:39:04 -04:00
Ragnar Groot Koerkamp
d5c71231e5 Only call workspace_auto_back_and_forth when needed
Instead of disabling it for some workspace subcommands, this explicitly
calls it only in the 2 places it's actually needed: for switching to a
named or numbered workspace.
2021-06-18 16:15:02 +02:00
Ragnar Groot Koerkamp
3080f1b9ce Move auto_back_and_forth logic out of workspace_switch
This extracts the code to a separate workspace_auto_back_and_forth
function.
It also removes the bool argument by adding an extra if statement at the call
site, and repurposes the no_auto_back_and_forth variable to
auto_back_and_forth for simpler understanding.
2021-06-18 16:15:02 +02:00
Ragnar Groot Koerkamp
771cff23fb Fix #6299 Disable auto_back_and_forth for next_on_output
This forces no_auto_back_and_forth to true for `workspace
next_on_output` and `workspace prev_on_output` to keep parity with i3.
In i3, running next_on_output never changes focus to another output.
In Sway currently, with workspace_auto_back_and_forth set to yet,
running next_on_output on an output with only a single active workspace
will typically end up focussing the other output:
1. next_on_output focusses the current workspace, because it's the only
one
2. auto_back_and_forth focusses the last focussed workspace, because the
current workspace to focus is the current one. This will usually be on
the other monitor if the workspace there was last focussed.
2021-06-18 09:37:28 +02:00
James Edwards-Jones
d13090be54 swaynag: adds option to set wayland shell layer
Uses --layer/-y set to overlay|top|bottom|background
2021-06-17 11:47:49 +02:00
Rahiel Kasim
75a4122f7a fix typo in sway-output.5.scd 2021-06-13 17:22:33 +02:00
Daniel Eklöf
3bf99198a6 sway: restore SIGPIPE handler before exec:ing swaybar
Sway ignores SIGPIPE (by installing a SIG_IGN handler), in order to
“prevent IPC from crashing Sway”.

SIG_IGN handlers are the *only* signal handlers inherited in
sub-processes. As such, we should be a good citizen and restore the
SIGPIPE handler to its default handler.

Original bug report:
https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1806907.html
2021-06-05 11:50:11 +02:00
Daniel Eklöf
1dd6df6a5d sway: commands: exec: restore SIGPIPE before exec:ing
Sway ignores SIGPIPE (by installing a SIG_IGN handler), in order to
“prevent IPC from crashing Sway”.

SIG_IGN handlers are the *only* signal handlers inherited in
sub-processes. As such, we should be a good citizen and restore
the SIGPIPE handler to its default handler.

Original bug report:
https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1806907.html
2021-06-05 11:50:11 +02:00
Daniel Otero
b997147284 config: Fix swaybar pango_markup inconsistency
Until now, swaybar did not have pango markup enabled by default, even if
the sway config had it on. This patch aims to mimic the i3 behavior, but
maintaining the functionality of the "pango_markup" sway config command.
2021-06-03 14:18:23 +02:00