Commit graph

1135 commits

Author SHA1 Message Date
Kovid Goyal
eb96830aa0
Make CSD API functions naming consistent 2024-04-07 10:18:13 +05:30
Kovid Goyal
334bb36745
Dont enable CSD for non XDG top-level windows such as layer shell surfaces 2024-04-07 10:08:02 +05:30
Kovid Goyal
283eba9667
Wayland: Respect top level bounds sent by compositor 2024-04-06 17:29:17 +05:30
Kovid Goyal
c651312a88
Adjust button colors 2024-04-06 17:24:55 +05:30
Kovid Goyal
5b1fdc34eb
Wire up the buttons 2024-04-06 14:58:31 +05:30
Kovid Goyal
a158fa108b
CSD pointer enter is the same as move 2024-04-06 12:51:09 +05:30
Kovid Goyal
60cb0fa650
Move CSD pointer handling code into CSD file 2024-04-06 12:49:07 +05:30
Kovid Goyal
d4cc5aa698
Report errors when attempts are made to perform actions the compositor doesnt support 2024-04-06 11:09:22 +05:30
Kovid Goyal
235b8dc2e4
Assume all capabilities on compositors that dont support reporting of capabilities 2024-04-06 10:59:28 +05:30
Kovid Goyal
4f6faddbab
Implement rendering of window control buttons in CSD
They still need to be wired up
2024-04-06 08:32:07 +05:30
Kovid Goyal
416d52bdac
... 2024-04-05 21:33:41 +05:30
Kovid Goyal
9225bd772d
Reduce CSD API surface 2024-04-05 19:57:43 +05:30
Kovid Goyal
9e55951d5a
... 2024-04-05 19:37:41 +05:30
Kovid Goyal
d9663aa135
Make code a little clearer 2024-04-05 19:29:51 +05:30
Kovid Goyal
9d86448585
Wayland: Allow hiding window decorations on compositors with SSD as well 2024-04-05 19:23:42 +05:30
Kovid Goyal
2c4ffba0f3
Wayland: A new option to turn off IME 2024-04-05 14:56:11 +05:30
Kovid Goyal
18b595a7e7
Map keymap fd using MAP_PRIVATE as required by the spec
Also report failures
2024-04-05 13:10:04 +05:30
Kovid Goyal
0198b7fa5a
... 2024-04-05 12:57:58 +05:30
Kovid Goyal
1bffe89b5d
Wayland GNOME: titlebar color now follows system theme
When GNOME system theme is default, the color matches the background
color. When it is dark it is dark.
2024-04-04 21:52:56 +05:30
Kovid Goyal
bdfa57039c
Get rid of frame dependent size storage in kitty layer
This unifies behaviour with CSD and SSD. Now, in both cases the
remembered size is the size of the content area.
2024-04-04 19:39:02 +05:30
Kovid Goyal
f51c2f08a5
DRYer 2024-04-04 19:11:21 +05:30
Kovid Goyal
ecee7086a8
Report compositor missing capabilities in debug output 2024-04-04 16:56:13 +05:30
Kovid Goyal
76999d1a67
Fix creation of single pixel buffer to use 32 bits per color channel 2024-04-04 16:13:28 +05:30
Kovid Goyal
cd67184432
Output some info about compositor capabilities for --debug-rendering 2024-04-04 11:46:41 +05:30
Kovid Goyal
b3197e4498
Wayland: Add fractional scale support to CSD 2024-04-04 11:25:17 +05:30
Kovid Goyal
90d2b8330a
... 2024-04-04 10:59:51 +05:30
Kovid Goyal
02c6f024d1
Merge branch 'master' of https://github.com/kindhuge/kitty 2024-04-04 10:56:22 +05:30
kindhuge
32905bbf5d chore: remove repetitive words
Signed-off-by: kindhuge <huangpengfei@outlook.com>
2024-04-04 13:19:49 +08:00
Kovid Goyal
bddc552433
... 2024-04-04 10:40:09 +05:30
Kovid Goyal
6adf4f5171
O_CLOEXEC for linux joystick open 2024-04-04 10:31:33 +05:30
Kovid Goyal
b76e94059d
Propagate failures to get video mode 2024-04-04 10:31:30 +05:30
Kovid Goyal
b4bba99678
Use single pixel buffer protocol for more efficient temp buffer creation 2024-04-04 09:00:33 +05:30
Kovid Goyal
5a62bbdd33
Revert "Wayland: Add support for pointer frame events. Code taken with thanks from SDL"
This reverts commit 506be129e1.
Seems to have broken wheel scrolling and I lake the time/interest to
debug why. Since this commit didnt actually solve any real issue revert
it for now. Revisit in the future when I have more bandwidth.

Fix #7287
2024-03-31 20:33:58 +05:30
Kovid Goyal
0c6fa47789
Wayland IME: Fix a bug with handling synthetic keypresses generated by ZMK keyboard + fcitx5
Fixes #7283
2024-03-31 09:42:28 +05:30
Kovid Goyal
274a9d7759
Suppress an unused header warning 2024-03-30 11:41:23 +05:30
Kovid Goyal
7796c15248
Suppress spurious warning from clangd 2024-03-30 11:37:01 +05:30
Kovid Goyal
506be129e1
Wayland: Add support for pointer frame events. Code taken with thanks from SDL 2024-03-28 15:32:59 +05:30
Kovid Goyal
8335a5212e
macOS: Fix an abort due to an assertion when a program tries to set an invalid window title
Fixes #7271
2024-03-27 19:02:43 +05:30
Kovid Goyal
aca13a619a
Retry all the ssh kitten tests on failure once 2024-03-26 19:45:20 +05:30
Kovid Goyal
dd879c413a
Initialize temp wayland buffer with background color 2024-03-26 19:31:27 +05:30
Kovid Goyal
351e96ca75
Ensure temp buffer is destroyed once normal swapping is in place 2024-03-26 17:13:31 +05:30
Kovid Goyal
610390ed69
abort ready loop if window receives a close event 2024-03-26 15:44:02 +05:30
Kovid Goyal
a40a36d191
Wayland: Remove the 120ms penalty from waiting for window creation
When showing the window we loop in the wayland backend using a
temporary buffer of blank pixels to force the compositor to finish
setting up the top level surface pronto.

TODO: Set the color of the temmporary buffer to the background color
2024-03-26 15:40:13 +05:30
Kovid Goyal
073f78badb
... 2024-03-26 14:09:19 +05:30
Kovid Goyal
0c5e8be49a
... 2024-03-26 14:06:39 +05:30
Kovid Goyal
2009a20561
... 2024-03-26 13:42:19 +05:30
Kovid Goyal
f7a7765ba2
Clean up debug rendering output 2024-03-26 13:06:08 +05:30
Kovid Goyal
adf5917325
Wayland: Only launch child after OS Window achieves its final size
Avoids a bunch of SIGIWNCH during child startup as not all programs
handle these correctly. Sadly adds about 0.1 seconds of latency to
startup. Will have to look into reducing that. The Wayland protocol is
*so badly* designed.
2024-03-26 12:48:45 +05:30
Kovid Goyal
f5314cb862
... 2024-03-26 11:48:57 +05:30
Kovid Goyal
6398dd5b75
Move xdg confugure response into its own function 2024-03-26 11:17:27 +05:30