Kovid Goyal
c8756612f7
...
2018-05-27 12:37:50 +05:30
Kovid Goyal
9fe995c7d8
Workaround for GLFW not working with the wlroots wayland compositor
2018-05-27 12:37:50 +05:30
Kovid Goyal
422bcfcb54
...
2018-05-27 12:37:50 +05:30
Kovid Goyal
3b04776956
Show the window much sooner after creating it
...
Do not make any OpenGL calls between creation and showing of the window.
Hopefully, that will make the fussy wlroots happy.
2018-05-27 12:37:50 +05:30
Kovid Goyal
1ba76508de
More detailed error message when cursor creation fails
2018-05-27 12:37:49 +05:30
Kovid Goyal
4e09a518d5
Don't initialize OpenGL for the temp window as it is not needed
...
Also dont fail to start if cursor creation fails, since cursor shapes
are not critical.
2018-05-27 12:37:49 +05:30
Kovid Goyal
e056460f0b
Split up creation of font group and sending of sprites to GPU
2018-05-27 12:37:49 +05:30
Kovid Goyal
da166aef99
API to control smallest allowed resize from python
2018-05-27 12:37:49 +05:30
Kovid Goyal
997c244664
Allow specifying initial window size in number of cells
2018-05-27 12:37:49 +05:30
Kovid Goyal
fe8cf46d56
Handle window DPI changes
2018-05-27 12:37:49 +05:30
Kovid Goyal
523aadaa3b
Refactor font group handling
...
Allow kitty to manage multiple groups of fonts with different cell
sizes. Will eventually allow kitty to have different font sizes/dpi per
OSWindow
2018-05-27 12:37:05 +05:30
Kovid Goyal
2e07159461
macOS: Fix regression that caused the macos_option_al_alt setting to always be set to no for all os windows ina kitty instance after the first. Fixes #571
2018-05-24 09:14:13 +05:30
Kovid Goyal
c0f790c928
Add a remote command to control window opacity
...
Fixes #569
2018-05-23 08:13:37 +05:30
Kovid Goyal
e053d1f566
Implement resizing of individual windows in a layout
...
See the Layouts section in the README for details. Fixes #362
Note that it is only implemented for the Tall layout currently. Other
layouts to follow. The implementation might also be refined in the
future.
2018-05-17 15:09:41 +05:30
Kovid Goyal
9cacfc0c26
macOS: When the macos_titlebar_color is set to background change the titlebar background to match the current background color of the active kitty window
2018-05-01 23:37:48 +05:30
Kovid Goyal
053835afbe
Add an option to not request window attention on bell. Fixes #507
2018-04-29 18:16:41 +05:30
Kovid Goyal
0f06bf1bdb
Merge branch 'macos_hide_from_tasks' of https://github.com/cfal/kitty
2018-04-27 08:19:32 +05:30
Alex Lau
b7f4f2e898
Move call to cocoa_window.m
2018-04-26 12:42:56 -07:00
Kovid Goyal
bd0382830a
Add a setting (kitty_mod) to change the modifier used by all the default kitty shortcuts, globally
...
See #487
2018-04-24 08:53:07 +05:30
James McCoy
215a7689d9
Correct types for various PyArg_ParseTuple/Py_BuildValue calls
...
Debian's [mips] build failed one of the font tests:
FAIL: test_sprite_map (kitty_tests.fonts.Rendering)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/kitty_tests/fonts.py", line 48, in test_sprite_map
self.ae(test_sprite_position_for(0, 1), (0, 1, 1))
self = <kitty_tests.fonts.Rendering testMethod=test_sprite_map>
AssertionError: Tuples differ: (0, 0, 0) != (0, 1, 1)
First differing element 1:
0
1
- (0, 0, 0)
? ^ ^
+ (0, 1, 1)
? ^ ^
This was due to test_sprite_position_for() using the "I" code to parse
into an unsigned short. Since mips is big endian, the "wrong" byte was
stored into extra_glyphs.data.
This commit changes all similar data type mismatches that were found
from auditing calls to PyArg_ParseTuple/Py_BuildValue.
[mips]: https://buildd.debian.org/status/fetch.php?pkg=kitty&arch=mips&ver=0.9.0-1&stamp=1524126606&raw=0
2018-04-20 08:28:26 -04:00
Kovid Goyal
2504266806
macOS: Fix option as alt not working for keys that act as dead keys in the current keyboard layout
2018-04-19 17:44:31 +05:30
Kovid Goyal
3f9d04b616
Fix #458
2018-04-14 08:41:40 +05:30
Kovid Goyal
d9cc065c99
...
2018-04-13 22:34:28 +05:30
Kovid Goyal
612fb3b596
Process events when timeout is zero
2018-04-13 22:34:08 +05:30
Kovid Goyal
785937ecfc
Remove unnecessary function calls
...
glfwSetInputMode is a no-op if the passed in mode is the same as the
current mode anyway.
2018-04-09 19:40:14 +05:30
Maxim Baz
662ab0df45
Allow background opacity for values in range [0.91, 0.99]
2018-04-09 12:59:17 +02:00
Kovid Goyal
49c375ae0f
Fix #441
2018-04-08 09:05:31 +05:30
Kovid Goyal
da8e2d3d4a
Adjust keys callback for new glfw keyboard API
2018-03-31 12:21:36 +05:30
Kovid Goyal
582500d3e9
Basic changes for new glfw keyboard API
2018-03-31 12:21:36 +05:30
Kovid Goyal
d0f839bbd8
Fix audible bell not working under Wayland
2018-03-27 19:45:19 +05:30
Kovid Goyal
9c46de319e
MacOS: Fix restoring of window size not correct on Retina screens
...
Fixes #382
2018-03-13 08:19:15 +05:30
Kovid Goyal
527255e3a1
Fix compilation with gcc 8
...
Apparently some nitwit Linux distros have made an unreleased compiler
their default compiler. Fixes #376
Fixes various new warnings that GCC 8 issues
2018-03-12 10:38:12 +05:30
Kovid Goyal
bc829a9712
Use a dedicated static variable for tracking window system initialization
2018-03-06 13:55:06 +05:30
Kovid Goyal
c7506496da
Unify error logging between python and C
2018-03-04 11:55:47 +05:30
Splinter Suidman
10c3c7c41f
Implement setting title bar color.
2018-02-22 21:19:55 +05:30
Kovid Goyal
5a15f7e8ad
Sync to monitor refreshes by default
...
Prevents tearing while scrolling. See #318
Reduce draw calls while processing mouse move events to make latency
while selecting with the mouse acceptable. Also add a config option to
turn off monitor syncing, so people with keyboard repeat rates higher
than their monitor's refresh rate can use it.
2018-02-20 09:38:00 +05:30
Kovid Goyal
e6cb64baa5
Revert "Enable syncing of redraws to monitor refresh rate"
...
This reverts commit 6a51096304 .
Turns out that dynamically changing the swap interval causes bad flicker
when rendering on X11 in a fullscreen window (or more generally, when
only a single X11 window is visible).
2018-02-20 08:32:33 +05:30
Kovid Goyal
6a51096304
Enable syncing of redraws to monitor refresh rate
...
Now, when large changes, such as scrolling occur, the OpenGL back buffer
swapping is synchronized to the monitor refresh rate (if supported by
the OS). This eliminates tearing artifacts when scrolling the screen fast.
Fixes #318
2018-02-14 20:59:58 +05:30
Kovid Goyal
8b099d969f
oops
2018-02-11 11:37:05 +05:30
Kovid Goyal
61157e8763
Remove the passing of swap_interval as a constructor parameter
...
It was unused and makes it more complicated to override via an option,
if needed.
2018-02-11 11:14:48 +05:30
Kovid Goyal
b1b76ca250
Redraw windows when the window manager tells us they have been damaged
...
Needed on systems with non-compositing window managers. Fix #317
2018-02-10 06:54:30 +05:30
Kovid Goyal
4c53a74fa9
Fix resize debounce implementation
2018-02-02 13:06:18 +05:30
Kovid Goyal
0341cae922
Fix unused function warning
2018-01-13 15:49:44 +05:30
koekeishiya
3695538a11
fix mac os_window focus issue
2018-01-12 20:24:11 +01:00
Kovid Goyal
f48b770036
macOS: Fix focus not being transferred on OSWindow close
...
Fixes #280
2018-01-12 08:05:12 +05:30
Kovid Goyal
448ffe01c3
Fix new window being created with different DPI not changing global DPI
2017-12-21 09:06:07 +05:30
Kovid Goyal
70a4720bf9
Fix for window being opened on secondary monitor using primary monitor DPI
2017-12-20 23:01:06 +05:30
Kovid Goyal
c8aee8c881
Automatically adjust cell height when DPI changes
...
DPI changes are detected as a change in the ration of the window size to
the framebuffer size. I dont know how reliable that is. Possiblly Fix #77
2017-12-20 22:55:05 +05:30
Kovid Goyal
e69de2f968
Use the new glfw API for setting WM_CLASS
2017-12-20 09:18:29 +05:30
Kovid Goyal
2f4f3e3331
Update bundled glfw
2017-12-20 09:07:06 +05:30