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 e359094cff68ec6cc26af407c2b924e5991eeec1
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
Alexander Orzechowski
e359094cff
wayland: move window state
2022-02-28 19:42:11 -05:00
Kovid Goyal
9d349d618a
Fix #4743
2022-02-26 14:42:21 +05:30
Kovid Goyal
6689d312a3
macOS: Paste multiple URLs separated by newlines
...
Fixes #4734
2022-02-25 10:17:36 +05:30
Kovid Goyal
fdc9835587
Cleanup previous PR
2022-02-18 13:44:25 +05:30
pagedown
58e8609c1a
macOS: Ensure the cursor is updated once
...
macOS will set the cursor to arrow after milliseconds after the switch
desktop animation ends. So the cursor that was updated immediately after
the focus will be changed again. This also affects toggling fullscreen.
2022-02-18 13:52:19 +08:00
pagedown
69c5c49094
Disable cursor rects
2022-02-18 13:52:00 +08:00
pagedown
ff8de7607a
Also handles the case where toggleFullScreen does not get called
2022-02-18 13:50:46 +08:00
pagedown
6d0721341b
Fix phantom window appears when executing full screen in transition
2022-02-17 15:47:03 +08:00
Kovid Goyal
0248edbdb9
xkb debug events should be printed to stderr
2022-02-14 15:03:31 +05:30
Rui Ming (Max) Xiong
d2288d8f83
Scale touchpad input by display scale on wayland
2022-02-13 20:47:02 -05:00
Kovid Goyal
4b4f904aac
Dont use global variables for the axis discrete counts
2022-02-13 20:56:55 +05:30
Kovid Goyal
ee5cf90684
Cleanup previous PR and add changelog entry for it
...
Fixes #4694
2022-02-13 10:53:24 +05:30
Rui Ming (Max) Xiong
79fa9f1c95
Use counters for discrete flags instead
2022-02-12 17:45:28 -05:00
Rui Ming (Max) Xiong
40bf12af7a
Check for discrete mouse events on wayland
2022-02-12 02:12:59 -05:00
pagedown
444d9bd341
macOS: Ignore when the global shortcut is disabled
2022-02-11 14:23:57 +08:00
pagedown
358f30ca7a
No longer need to fall back and check the default shortcuts
2022-02-11 02:39:50 +08:00
pagedown
e32785831b
macOS: Add missing global shortcuts that will be enabled by default
2022-02-11 02:19:27 +08:00
Kovid Goyal
728eceb620
Add implementation for focus moving hardcoded shortcuts
2022-02-10 18:56:47 +05:30
Kovid Goyal
57f591d1ce
Simplify default global shortcut lookup
...
Now if a shortcut is present in the plist, it will not be considered for
default matching
2022-02-10 17:47:11 +05:30
Kovid Goyal
e4397a1c73
Framework for Apple's default global shortcuts
2022-02-10 14:15:21 +05:30
Kovid Goyal
f047678711
More robust initial window replacement when launching URLs
2022-02-06 07:11:57 +05:30
pagedown
51d591e177
macOS: Allow opening URLs with kitty
2022-02-05 13:05:41 +08:00
pagedown
80a62c8d71
Add preamble to generated file and fix gen-config.py filename
2022-02-05 13:05:13 +08:00
pagedown
ce57c747cc
macOS: Fix select next input source not working
...
For global shortcut to switch the next input source in the macOS system
preferences, final confirmation is only given when all modifier keys are
released.
2022-02-04 12:51:01 +08:00
Kovid Goyal
3e9129655a
...
2022-02-03 21:00:23 +05:30
pagedown
ba0f61d752
Refactor: More f-string for kitty
2022-01-29 20:17:46 +08:00
pagedown
dc61adf9d8
Refactor: More f-string
2022-01-28 19:34:13 +08:00
Luflosi
347c0d4de4
Fix compilation on macOS 10.12
...
Without this commit, kitty would fail to compile on macOS 10.12 with the error "use of undeclared identifier".
This problem was introduced in f7be4fab48d2e7cc7bbf9942d8a9fdbfba85b274, where some code was moved to a different file, without moving the corresponding `#define` statements.
2022-01-27 12:21:17 +01:00
pagedown
b9a612fb9c
macOS: Clean up any text that may not have been sent when loses focus
2022-01-27 12:37:17 +08:00
pagedown
4d920b182f
macOS: Cancel IME composition when receive loss of focus event
2022-01-27 10:07:18 +08:00
pagedown
b3f678cf6f
Improve debug log
2022-01-26 18:28:37 +08:00
pagedown
7f3715cd3e
Use the input context instance from GLFWContentView
2022-01-26 18:25:37 +08:00
pagedown
a3aaaa1efb
macOS: Explicitly cancel IME composition when losing the focus
2022-01-26 18:21:20 +08:00
Kovid Goyal
d1531632a2
Add some notes on how to run IBUS for testing
2022-01-26 10:47:18 +05:30