Commit Graph

1820 Commits

Author SHA1 Message Date
Kovid Goyal
86e33f739c Ensure OS windows have both buffers cleared after a resize/on first render 2017-12-01 12:16:16 +05:30
Kovid Goyal
259dcf376c DRYer 2017-12-01 12:16:16 +05:30
Kovid Goyal
466155fd24 API needed for kitty-bar 2017-12-01 12:16:16 +05:30
Kovid Goyal
452fd71fea Simplify blit vertex shader
Also fixes rendering on macOS which for some reason was not doing the
texture co-ordinate mapping correctly in the old shader.
2017-12-01 12:16:15 +05:30
Kovid Goyal
da8944b551 ... 2017-12-01 12:16:15 +05:30
Kovid Goyal
5e2587920a Call glViewport in the render loop
Ensure FBOs have correct viewport
2017-12-01 12:16:15 +05:30
Kovid Goyal
7fb48dc04c ... 2017-12-01 12:16:15 +05:30
Kovid Goyal
b8e477c6eb Clamp the FBO texture 2017-12-01 12:16:15 +05:30
Kovid Goyal
a3b85883f8 Block cursor should not be affected by background_opacity 2017-12-01 12:16:15 +05:30
Kovid Goyal
e1c553e7b2 Wakeup main loop on peer message received 2017-12-01 12:16:15 +05:30
Kovid Goyal
be6151730d Fix SPECIAL stage in interleaved rendering 2017-12-01 12:16:15 +05:30
Kovid Goyal
444d9536a7 Graphics programs should generate pre-multipled colors in interleaved mode
Also fix a few OpenGL state initialization issues.
2017-12-01 12:16:15 +05:30
Kovid Goyal
ffff343e3d Work on rendering to FBO 2017-12-01 12:16:15 +05:30
Kovid Goyal
f85c050235 Get background_opacity working, at the cost of breaking negative z-index image rendering.
Image rendering will need to use an FBO since OpenGL cannot do proper alpha compositing.
As a first step, the interleaved shaders now generate premultiplied colors as opengl can only alpha blend pre-multipled colors
2017-12-01 12:16:14 +05:30
Kovid Goyal
fe214f43cb Set _NET_STARTUP_ID before the window is mapped 2017-12-01 12:16:14 +05:30
Kovid Goyal
d9b0b5c08f oops, forgot one place to enable GL_BLEND 2017-12-01 12:16:14 +05:30
Kovid Goyal
a561697f04 No need for GL_BLEND while drawing background colors 2017-12-01 12:16:14 +05:30
Kovid Goyal
bbc140e020 Only enable GL_BLEND when actually needed 2017-12-01 12:16:14 +05:30
Kovid Goyal
2bcbcfff44 Start work on background opacity 2017-12-01 12:16:14 +05:30
Kovid Goyal
1fb81d2265 Fix incorrect blending of foreground and background colors when negative z-index images are present
Also optimize the blending calculation a bit by using the mix() function
and just adding the text and strike alphas.
2017-12-01 12:16:14 +05:30
Kovid Goyal
3b4a242e26 Fix sprites uniform not being initialized when using layered rendering
Had no actual bad effects since it is initialized to zero anyway
2017-12-01 12:16:14 +05:30
Kovid Goyal
b8937bc151 Only use wayland if a special env var is present
wayland is currently fairly broken. No window decorations and no key
auto-repeat.
2017-12-01 12:16:14 +05:30
Kovid Goyal
b3de442116 pretty colors 2017-12-01 12:16:14 +05:30
Kovid Goyal
fb797d7735 ... 2017-12-01 12:16:14 +05:30
Kovid Goyal
982a9320c5 Final fixes needed for wayland building
kitty now runs under wayland again
2017-12-01 12:16:13 +05:30
Kovid Goyal
47dec2c2e9 Dynamic detection of wayland 2017-12-01 12:16:13 +05:30
Kovid Goyal
eb8f4e0b3c isosx -> is_macos 2017-12-01 12:16:13 +05:30
Kovid Goyal
85fcd51ea3 Enable building of glfw-wayland backend 2017-12-01 12:16:13 +05:30
Kovid Goyal
9ec6cf721f Update compilation database even after failed builds 2017-12-01 12:16:13 +05:30
Kovid Goyal
bcd4c64b8a Key compilation database by output as well 2017-12-01 12:16:13 +05:30
Kovid Goyal
3b0d8ec500 Nicer error when pkg-config fails 2017-12-01 12:16:13 +05:30
Kovid Goyal
73ce2ccb47 remove unused header 2017-12-01 12:16:13 +05:30
Kovid Goyal
a5078afd1e Move the bell implementation into glfw 2017-12-01 12:16:13 +05:30
Kovid Goyal
32a6dd2aa1 Add a command line switch to set the name part of WM_CLASS independently 2017-12-01 12:16:13 +05:30
Kovid Goyal
02884c5045 Debounce audio bells 2017-12-01 12:16:12 +05:30
Kovid Goyal
25d7668b70 Add an option to control the audio bell volume on X11 2017-12-01 12:16:12 +05:30
Kovid Goyal
2ff39c1578 DRYer 2017-12-01 12:16:12 +05:30
Kovid Goyal
a11d6466c6 Update vendored glfw 2017-12-01 12:16:12 +05:30
Kovid Goyal
df56080303 Fix building on travis/macOS libunistring detection 2017-12-01 12:16:12 +05:30
Kovid Goyal
4d1eb1f729 Install libxkbcommon on Travis 2017-12-01 12:16:12 +05:30
Kovid Goyal
ec06dd7460 Add a --verbose build flag 2017-12-01 12:16:12 +05:30
Kovid Goyal
163ce2a066 Update CHANGELOG 2017-12-01 12:16:12 +05:30
Kovid Goyal
058c1bec10 Workaround for new windows not getting focus events on macOS 2017-12-01 12:16:12 +05:30
Kovid Goyal
ba40bf5e6f remove no longer needed code 2017-12-01 12:16:12 +05:30
Kovid Goyal
d457abdee4 Prevent glfw from doing stupid stuff on cocoa 2017-12-01 12:16:11 +05:30
Kovid Goyal
3773aaa8a1 Get it building on macOS 2017-12-01 12:16:11 +05:30
Kovid Goyal
cfc99baac4 Get rid of ctypes based loading of libglfw/libX11 2017-12-01 12:15:36 +05:30
Kovid Goyal
b6be6ee1e7 Explicitly set expandtab 2017-12-01 12:15:36 +05:30
Kovid Goyal
dfd8a69cf2 Build kitty against bundled glfw 2017-12-01 12:15:36 +05:30
Kovid Goyal
9307486254 Initial import of glfw 2017-12-01 12:15:36 +05:30