Kovid Goyal
fe5ccc144b
Finish glfw side support for layer shell
2024-03-24 20:48:20 +05:30
Kovid Goyal
0641ec2d89
GLFW API for configuring a window as a layer shell
2024-03-24 20:48:20 +05:30
Kovid Goyal
707e69a794
Start work on wayland layer shell support
2024-03-24 20:48:20 +05:30
Kovid Goyal
2f151e773c
...
2024-03-22 13:52:17 +05:30
Kovid Goyal
1c9f9a74e8
Wayland KDE: Add support for background_blur under kwin using a kwin private Wayland protocol
2024-03-22 13:41:44 +05:30
Kovid Goyal
83468535dd
Implement support for preferred buffer scale
2024-03-21 20:53:36 +05:30
Kovid Goyal
55115058d2
Scale pointer axis events by effective scale
2024-03-21 20:53:36 +05:30
Kovid Goyal
776bfa3d7e
Basic fractional scale protocol works
2024-03-21 20:53:36 +05:30
Kovid Goyal
6979f1c5eb
Add listener for fractional scale events
2024-03-21 20:53:36 +05:30
Kovid Goyal
5d0c25f5ea
Register the viewporter
2024-03-21 20:53:36 +05:30
Kovid Goyal
eb42ad3a2b
Rename scale to integer_scale
...
We will presumably have a fractional_scale soon
2024-03-21 20:53:36 +05:30
Kovid Goyal
2b6edbccbc
Start work on fractional scale support for Wayland
...
Register the interface on startup
2024-03-21 20:53:36 +05:30
Kovid Goyal
3c4db20d2d
DRYer
2024-03-21 11:27:41 +05:30
Kovid Goyal
baa3ec0a62
Explicitly detect compiler types gcc vs clang
2024-03-14 12:02:01 +05:30
Kovid Goyal
478fc766b6
...
2024-03-14 11:53:44 +05:30
Kovid Goyal
6c49066cde
Fix undefined function pointer usage found by clang sanitizer
2024-03-14 11:47:56 +05:30
Kovid Goyal
3950632517
Switch to detecting clang rather than gcc
...
gcc makes it impossible to detect that it is gcc via --version
so instead detect clang and assume gcc if not clang.
Fixes #7218
2024-03-14 10:48:27 +05:30
Kovid Goyal
6c31256aa1
Keyboard protocol: Do not deliver a fake key release events on OS window focus out for engaged modifiers
...
Fixes #7196
2024-03-07 08:29:10 +05:30
Kovid Goyal
99af9739b2
...
2024-02-25 19:46:18 +05:30
Kovid Goyal
9ce366fa7b
Fix #7154
2024-02-25 15:22:43 +05:30
Kovid Goyal
ac984d05f2
Fix gcc detection
2024-02-25 09:57:43 +05:30
Kovid Goyal
f16c2a0d67
Move checking for compiler brand into Env
2024-02-25 09:57:43 +05:30
Kovid Goyal
8dd6f9b07c
Get universal builds working again
...
Now we use lipo and build individually so we can pass the correct
compiler flags per arch
2024-02-25 09:57:38 +05:30
Kovid Goyal
7e77a196e6
Build only the SIMD code with SIMD compiler flags
2024-02-25 09:57:38 +05:30
Kovid Goyal
0f60ac2dd7
sprintf -> snprintf
2024-02-25 09:57:30 +05:30
Kovid Goyal
ce2e1b0813
Ensure we dont pass a NULL pointer to wl_pointer_set_cursor()
...
Possible fix for #7139
2024-02-20 23:31:18 +05:30
Kovid Goyal
585ac148a6
...
2024-02-09 19:14:26 +05:30
Kovid Goyal
7c14e0d666
macOS: Fix an abort when changing OS window chrome for a full screen window via remote control or the themes kitten
...
Fixes #7106
2024-02-09 15:32:09 +05:30
Kovid Goyal
7038292d11
Merge branch 'master' of https://github.com/solopasha/kitty
2024-01-19 14:03:30 +05:30
Kovid Goyal
b33f8416db
Fix for spurious github code scanning alert
2024-01-19 14:01:26 +05:30
Pavel Solovev
99b3d0727d
Fix build with gcc14
2024-01-19 11:25:53 +03:00
Kovid Goyal
1593baa9f9
remove unused include
2024-01-18 21:38:18 +05:30
Kovid Goyal
54900183ec
Fix #6997
2024-01-16 13:38:12 +05:30
Jin Liu
e20eff277b
Fix Wayland cursor-shape-v1 cursor not updating
...
According to https://wayland.app/protocols/cursor-shape-v1#wp_cursor_shape_device_v1:request:set_shape
> The serial parameter must match the latest wl_pointer.enter or
> zwp_tablet_tool_v2.proximity_in serial number sent to the client.
So we can't use wl.serial or wl.pointer_serial, because they are also updated in other places.
2024-01-04 19:54:03 +08:00
Kovid Goyal
c76db4bfb4
Wayland: Redraw titlebar title on font size change
...
Fixes #6945
2023-12-25 17:20:52 +05:30
Kovid Goyal
4519b3abee
Enable cursor shape on Wayland
...
Cant replicate the hyprland crash, so am not going to bother about it.
Fixes #6914
2023-12-24 22:56:01 +05:30
Kovid Goyal
cff490f881
Wayland: Add support for the new cursor-shape protocol
...
It is currently disabled because no compositor seems to support it.
Hyprland reports it as available but using it causes Hyprland to crash.
Plasma 6 is supposed to have it but I am not installing a beta just for
this.
Typical Wayland.
2023-12-24 18:45:17 +05:30
Kovid Goyal
7d8c017215
DRYer
2023-12-24 15:03:56 +05:30
Felix Kratz
912c5ce4f9
dont reuse cascade point on another display
...
fix wording
reset cascade point to zero point
2023-12-21 11:30:50 +01:00
Kovid Goyal
b2587c1d54
Fix modifier reporting on macOS
...
We make use of the fact that the device dependent modifiers flags
actually report left/right modifier. Code taken form SDL, with thanks.
2023-12-14 11:31:48 +05:30
Kovid Goyal
00f8f340bf
macOS: Fix returning from full screen via the button when the titlebar is hidden not hiding the buttons
...
Fixes #6883
2023-12-10 22:30:15 +05:30
Kovid Goyal
69a5c7e3b2
Wayland: Fix a regression in the previous release that broke copying to clipboard under wl-roots based compositors in some circumstances
...
As is usual in Wayland land, utter chaos. Divergent implementations,
incorrect interpretations of the spec, bla bla.
Fixes #6890
2023-12-08 08:38:08 +05:30
Jin Liu
293cd40509
Get cursor theme from desktop portal in non-GNOME desktops
...
Even if current DE is not GNOME, it may still use the GNOME
desktop portal as a fallback for Settings (e.g. KDE). So if
the user installed xdg-desktop-portal-gtk, and KDE synced
its cursor theme with GNOME, then we can still get it from
the GNOME namespace in the Settings.ReadAll result from the
portal.
2023-12-02 15:00:03 +08:00
Kovid Goyal
53980d00f0
a couple more tests
2023-12-01 18:16:22 +05:30
Kovid Goyal
77292a16d6
Make shebangs consistent
...
Follow PEP 0394 and use /usr/bin/env python so that the python in the
users venv is respected. Not that the kitty python files are meant to be
executed standalone anyway, but, whatever.
Fixes #6810
2023-11-11 08:32:05 +05:30
Kovid Goyal
114b8dff51
...
2023-11-03 20:01:33 +05:30
Kovid Goyal
61429c73c7
Wayland: Fix primary selections not working with the river compositor
...
Fixes #6785
2023-11-03 19:57:54 +05:30
Kovid Goyal
1c1519c6e4
micro optimization
2023-10-25 18:41:27 +05:30
Kovid Goyal
ae4a13b249
Better fix for macOS deadlock
...
Fix it in glfw. Dont hold the tick lock when calling the tick callback
as the tick callback might be waiting on a lock.
2023-10-25 18:32:07 +05:30
Kovid Goyal
fa53ac7896
Fix deprecation warning for compositing operation
2023-10-18 06:12:31 +05:30