Kovid Goyal
d17a6cd3a3
Get reading from clipboard working
2022-09-08 12:45:34 +05:30
Kovid Goyal
7e1380cc0d
Start work on giving GLFW a proper clipboard API
2022-09-08 12:45:34 +05:30
Kovid Goyal
5bb2cb06a9
Fix #5477
2022-09-05 21:43:56 +05:30
Kovid Goyal
b60d9f73ce
Wayland: Fix remembering window size not accurate when client side decorations are present
2022-09-04 14:25:04 +05:30
Rafael Kitover
7b75f055ea
Fix build on macOS High Sierra
...
Check for >= 10.14 using Availability.h to use the accessibilityRole
callback which does not seem to be available in 10.13.
Signed-off-by: Rafael Kitover <rkitover@gmail.com>
2022-08-20 16:08:28 +00:00
Kovid Goyal
f3329fcd34
Fix storage for GLFW_MOD_KITTY
2022-08-12 09:58:50 +05:30
Kovid Goyal
5bba1a0851
get_current_selection should return char* not const char*
2022-08-09 09:05:13 +05:30
Kovid Goyal
e9823eb40c
Cleanup previous PR
2022-08-09 08:54:47 +05:30
pagedown
74714f942a
Implement macOS accessibility protocol to provide selected text
...
Allow "Speak selection" (Option+Esc) to work properly.
2022-08-09 11:02:12 +08:00
pagedown
0d116e6ef0
Use four spaces to indent
2022-08-08 22:31:55 +05:30
pagedown
06108d66b1
Replace tab with four spaces indent
2022-08-08 22:31:55 +05:30
Kovid Goyal
4dd696e4e0
Add API to glfw to get the currently active text selection
2022-08-08 15:52:34 +05:30
Kovid Goyal
d04d4444af
implement primary selection api on cocoa as stubs, can be useful for #5357
2022-08-06 12:59:15 +05:30
Kovid Goyal
40bba70bfe
Wayland IME: Avoid printing errors for compositors that pointlessly acknowledge previous IME commits rather than just the current one. Apparently kwin is one such. Fixes #5339
2022-07-31 10:22:40 +05:30
Kovid Goyal
7fc1735a21
swaps_disallowed is used only on wayland
2022-06-28 20:19:52 +05:30
Kovid Goyal
cd369f633a
Wayland: Ensure that opengl buffer swapping does not happen till the xdg surface is configured
2022-06-28 10:47:33 +05:30
Kovid Goyal
72dfa74b3e
Avoid an extra buffer swap during startup
...
glfw should not be swapping buffers behind the clients back. Since we
control the client, we can ensure that the OpenGL VRAM is cleared before
the window is shown.
Also fixes the issue with the glfw wayland backend where the buffer was
being created before the surface was configured
2022-06-28 09:25:24 +05:30
pagedown
2cc506476b
macOS: Fix JIS Eisu and Kana keys not working
2022-06-25 19:01:02 +08:00
Kovid Goyal
fa823a37ae
Backport 6281f498c8
2022-06-23 13:00:28 +05:30
Kovid Goyal
646bdbd002
Wayland: Fix a regression in the previous release that caused mouse cursor animation and keyboard repeat to stop working when switching seats
...
Fixes #5188
2022-06-10 21:38:30 +05:30
Kovid Goyal
2f3dd72c84
Weston: Fix client side decorations flickering on slow computers during window resize
...
Fixes #5162
2022-06-03 11:00:56 +05:30
Kovid Goyal
609bcd68dd
Fix #5161
2022-06-02 10:32:43 +05:30
Kovid Goyal
cabfcbcb69
macOS: When pasting text and the clipboard has a filesystem path, paste the full path instead of the text, which is sometimes just the file name
...
Fixes #5142
2022-05-30 14:40:45 +05:30
Kovid Goyal
65f1329635
Wayland: When the seat is closed remove any pending pointer animation and key repeat timers
...
Fixes #5145
2022-05-29 14:50:34 +05:30
Kovid Goyal
1b2d54d97a
Output a warning when libwayland-cursor returns incorrectly sized cursor images
2022-05-23 12:50:47 +05:30
Kovid Goyal
e7da874b82
GNOME: Workaround for GNOME's text input system going into an infinite loop if cursor position is updated in response to a done event
...
Fixes #5105
2022-05-23 10:36:58 +05:30
Kovid Goyal
c48bf4fd85
Output debug lines for when kitty sets the pointer in Wayland
2022-04-30 09:13:08 +05:30
Kovid Goyal
a36d5dcde1
GLFW API for changing colorspace of windows on cocoa
2022-04-26 10:56:34 +05:30
Kovid Goyal
c2bc24de35
Read appearance setting from desktop portal as well
2022-04-05 15:44:27 +05:30
Kovid Goyal
5c03a52a0b
...
2022-03-29 15:34:34 +05:30
Kovid Goyal
51c8e3b2c6
Add some more debug about scale changes
2022-03-29 09:47:48 +05:30
pagedown
3db0aab24b
macOS: Fix the path encoding issue from drag and drop files
2022-03-25 09:14:56 +08:00
Kovid Goyal
906be21b8d
Make GNOME detection a bit more tolerant
2022-03-22 11:36:09 +05:30
pagedown
11343d42c3
Wayland: Fix backspace cannot clear the last character of pre-edit text
2022-03-21 18:36:35 +08:00
pagedown
6c628bc594
Wayland: Fix IME is not enabled after switching the focus
2022-03-21 18:36:25 +08:00
Kovid Goyal
06da2b88ff
Also check if states are empty
2022-03-17 17:51:21 +05:30
Kovid Goyal
91b9110dcc
Workaround for bug in mutter that caused first OS window to not have functional CSD when launched from activities
...
Fixes #4802
2022-03-17 17:35:56 +05:30
Kovid Goyal
a9de91087a
Add a comment explaining why we dont commit if resized
2022-03-10 20:47:45 +05:30
Kovid Goyal
719339e116
Output debug info about CSD rendering
2022-03-10 19:45:31 +05:30
Kovid Goyal
1c3910de5c
Output debug info about resized being called
2022-03-10 19:32:17 +05:30
Kovid Goyal
39d3ef6fe8
Output debug for decoration configure when it happens
2022-03-10 17:59:54 +05:30
Alexander Orzechowski
99a5843595
wayland: Don't commit the surface on a resize
...
This fixes weirdness with GNOME.
On a resize, we will schedule a new frame anyway which will commit
the wl_surface for us anyway. If we don't resize, we'll commit
to stay true to the wayland spec.
2022-03-10 06:02:22 -05:00
Alexander Orzechowski
39e75e39e8
wayland: Correctly handle xdg decoration configures
...
Much like toplevel configures, xdg decoration configures only take
effect once the xdg shell configure comes through. Also,
let's get rid of some double computations because we unified the code
paths.
2022-03-10 06:01:50 -05:00
Alexander Orzechowski
322a80e76e
wayland: track configures through a bit field
...
This will let us add more stuff later. Also, it's a better spot
to put the bit field outside of the {current, pending} struct as
the bit field doesn't make any sense if it's part of the `current`
values.
2022-03-10 05:56:56 -05:00
Alexander Orzechowski
d4b048735d
wayland: Fix CSD size calculations
...
This is a partial revert of e359094cff
window->wl.{width, height} and window->wl.current.{width, height}
represent different things. The former represents the actual size of the
egl surface viewport used for terminal rendering. The former represents
the size of the entire window including the CSD (client side decorations).
These numbers should be the same if CSD is disabled.
2022-03-10 05:56:56 -05:00
Kovid Goyal
a4ae090c37
commit surface even for out of order configures
2022-03-03 07:18:04 +05:30
Alexander Orzechowski
ac407d42de
wayland: always commit surface on configure
2022-03-02 14:43:49 -05:00
Kovid Goyal
af6baa33be
Ignore out of order surface configure events
2022-03-01 07:59:17 +05:30
Kovid Goyal
1096cbe236
Use an anonymous struct
2022-03-01 07:46:45 +05:30
Alexander Orzechowski
854cb8f27e
wayland: handle resize requests after acknowledging the configure
...
The wayland protocol requires that clients commit a new buffer sometime
after `xdg_surface_ack_configure`.
2022-02-28 19:42:11 -05:00