Commit graph

7222 commits

Author SHA1 Message Date
jlo62
539cf9f3e8
Merge branch 'master' into sensitivity 2023-10-31 14:38:19 +01:00
Bill Li
6f6b82793d chase wlroots!4411
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4411
    fix #7802
2023-10-31 09:51:19 +01:00
Kirill Primak
f2425b4fd6 xdg-shell: send maximized if tiled isn't supported
wlroots doesn't do it automatically anymore.
2023-10-29 17:21:18 +01:00
Dudemanguy
647521244a xdg_shell: don't update wlr_toplevel if the container has no size yet
3d5ae9813d added logic to change the
underlying wlr_toplevel size for floating containers, but it does it
even if the container has no actual coordinates yet. This doesn't really
make sense to update the toplevel size in this case since there's many
things that could affect the initial coordinates (sway commands,
fullscreen state, etc.). Skip this by doing a crude check to see if the
current container state has any width.
2023-10-27 17:36:32 -07:00
jlo62
8ff53f9094
Merge branch 'master' into sensitivity 2023-10-24 20:53:58 +02:00
Kirill Primak
47263aca28 view: check if the buffer was uploaded on save
wlr_surface_has_buffer() is insufficient; if a client has committed a
buffer but it couldn't be applied, NULL deref happens in the next line.
2023-10-24 14:35:57 +02:00
Tamino Bauknecht
0dfaf7ea63 config/output: Allow approximation of output refresh rate
Previous behavior was that only if resolution and refresh rate match
exactly, the mode was accepted. As fallback, the mode with the highest
refresh rate and the same resolution was chosen.

New behavior is that the mode with the closest match for the refresh
rate is used with a limit of up to 1Hz. The fallback behavior stays the same.

Additionally, the logging was made more verbose.
2023-10-23 11:05:08 +02:00
Tamino Bauknecht
f2425b5163 gitignore: Ignore clangd-generated directory .cache/ 2023-10-23 11:05:08 +02:00
Alexander Orzechowski
4326a26ad6 Chase wlroots!4331 2023-10-06 14:39:12 +03:00
iff
8a8fb76ec1 Update sway-input.5.scd 2023-10-05 10:04:32 +02:00
jlo62
55a02c7d6b
Merge branch 'master' into sensitivity 2023-10-05 06:27:19 +02:00
Simon Ser
7cf4e1d5c6 Drop support for KDE's idle protocol
We support the standard idle-notify protocol since Sway 1.8.
2023-10-05 00:01:54 +02:00
jlo62
026b3a6324
Update ipc-json.c 2023-09-18 18:14:14 +02:00
jlo62
a441c20a46 Revert "Update ipc-json.c"
This reverts commit 48c0c0b9d6.
2023-09-18 18:03:14 +02:00
jlo62
db98bdd4d2 Revert "Update ipc-json.c"
This reverts commit 3149f533fe.
2023-09-18 18:02:56 +02:00
jlo62
3149f533fe
Update ipc-json.c 2023-09-18 12:37:18 +02:00
jlo62
48c0c0b9d6
Update ipc-json.c 2023-09-18 12:13:47 +02:00
jlo62
475e289226
Update input.c 2023-09-18 11:56:41 +02:00
jlo62
47ac4cd87e
Update cursor.c 2023-09-17 20:35:06 +02:00
jlo62
bda7f681e7
Update cursor.c 2023-09-17 20:32:36 +02:00
jlo62
23ad8be535
Update cursor.c 2023-09-17 20:31:03 +02:00
jlo62
3996e54dfb
Update cursor.c 2023-09-17 20:29:11 +02:00
jlo62
a2c9e8f7e1
Update cursor.c 2023-09-17 20:27:32 +02:00
jlo62
f2ebfc25b7
Update cursor.c 2023-09-17 20:26:44 +02:00
jlo62
094c0004a6
Update cursor.c 2023-09-17 20:20:38 +02:00
jlo62
9932197d16
Update sway-ipc.7.scd 2023-09-17 19:37:18 +02:00
jlo62
ec7e1681fc
Update sway-input.5.scd 2023-09-17 19:36:27 +02:00
jlo62
4f5753dd6b
Update meson.build 2023-09-17 19:35:38 +02:00
jlo62
62266d5da7
Update ipc-json.c 2023-09-17 19:35:00 +02:00
jlo62
5305ccab0a
Update input-manager.c 2023-09-17 19:30:03 +02:00
jlo62
ec3e47df91
Update cursor.c 2023-09-17 19:29:09 +02:00
jlo62
4d87b7ba9e
Update input.c 2023-09-17 08:04:46 +02:00
jlo62
0bb8dd8c85
Create sensitivity.c 2023-09-17 07:41:16 +02:00
jlo62
fef41686d6
Update input-manager.h 2023-09-17 07:39:19 +02:00
jlo62
919ea1531a
Update config.h 2023-09-17 07:37:55 +02:00
jlo62
84dd73d021
Update commands.h 2023-09-17 07:34:03 +02:00
Ashraf
b3519c2d2f Translate README to Arabic 2023-09-14 13:37:50 +02:00
Jan Beich
68caa8deba readme: Stop recommending setuid bit for non-logind systems
- Optional since Sway 1.6 per swaywm/wlroots@bad1e9afa8
- Deprecated in Sway 1.7 per 67d3d952b6
- Removed in Sway 1.8 per e5728052b5
- Ignored in future versions (keeps root priveleges)
2023-09-13 10:21:59 +02:00
Manuel Stoeckl
8edc48f6dd sway/server: Fix null pointer crash when Xwayland disabled 2023-09-10 08:33:10 +09:00
Johan Sköld
d952ce403e i3 compat: Adding support for the all criteria
Matches all views. i3 PR: https://github.com/i3/i3/pull/4460

Fixes #7110
2023-09-07 10:42:54 +09:00
iff
3dd2f4a67f
commands/input/map_from_region: don't treat 0x prefix as hex identifier
When using the `map_from_region` for pen tables, we will usually make
the available area as big as possible while maintaining the proportions
with the screen.

As most of the tablets uses a 16:10 ratios while the most popular screen
ratios is still 16:9, the argument for most people should be `0x0 1x0.9`
to have the maximum effective area.

However, the argument above won't work because the current code will
treat `0x...` as a hexadecimal number, instead of setting both `x` and
`y` to `0`.

This fix allows the use of the following syntax:

```
input type:tablet_tool {
	map_from_region 0x0 1x0.9
}
```
2023-09-07 01:31:35 +00:00
denppa
89f8531268
build: fix build with wayland-scanner subproject 2023-08-30 23:57:25 +09:00
Dudemanguy
3d5ae9813d xdg_shell: update wlr_toplevel size on client resizes
If a floating client resizes itself, sway updates several of its
internal dimensions to match but not wlr_toplevel. This means that the
next time wlroots sends a toplevel configure event, it can have wrong
coordinates that resize the client back to its old size. To fix this,
let's just use wlr_xdg_toplevel_set_size so the wlr_toplevel has the
same dimensions as sway.

Exactly the same as 0183b9d35d but the
logic is onlly applied to xdg_shell and not xwayland.
2023-08-28 17:04:53 -07:00
Dudemanguy
60a94b4916 Revert "view: update wlr_toplevel size on client resizes"
This isn't the right fix for this issue because the xwayland code also
uses this function and updating the wlr_toplevel there doesn't make
sense and also causes problems. Fixes #7722.

This reverts commit bf44690ee8.
2023-08-28 17:04:53 -07:00
Dudemanguy
bf44690ee8 view: update wlr_toplevel size on client resizes
If a floating client resizes itself, sway updates several of its
internal dimensions to match but not wlr_toplevel. This means that the
next time wlroots sends a toplevel configure event, it can have wrong
coordinates that resize the client back to its old size. To fix this,
let's just use wlr_xdg_toplevel_set_size so the wlr_toplevel has the
same dimensions as sway. Fixes #5266.
2023-08-26 13:44:37 -07:00
Simon Ser
4a2210577c Hide xwayland_shell_v1 from regular clients
Regular clients are not allowed to use this interface. wlroots
already sends a protocol error if a non-Xwayland client tries to
use this interface, but let's remove all temptation by hiding it
completely.
2023-08-24 18:27:22 +02:00
luzpaz
d84b3832f4 Fix typo 2023-08-23 20:18:13 +02:00
Kirill Primak
a908651821 chore: chase wlroots xdg-surface role rework 2023-08-21 18:41:32 +02:00
Leonardo Hernández Hernández
363c57984d chase wlroots!4316
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4316
2023-08-19 21:06:26 -07:00
Simon Ser
bb91b7f5fa Move contrib/ to separate repository
User-contributed scripts are being moved over to this repository:
https://github.com/OctopusET/sway-contrib
2023-08-02 17:18:38 +02:00