Commit Graph
1507 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 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 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 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 dfd8a69cf2 Build kitty against bundled glfw 2017-12-01 12:15:36 +05:30
Kovid Goyal ee232fb08c API needed for kitty-bar 2017-12-01 12:15:36 +05:30
Kovid Goyal ef7dcbf365 API to create initially hidden windows 2017-12-01 12:15:36 +05:30
Kovid Goyal 3e511d217b Pass the window class and size settings when creating a grouped window 2017-12-01 12:15:36 +05:30
Kovid Goyal b08f4ab593 Use startup notifications in single instance mode 2017-12-01 12:15:35 +05:30
Kovid Goyal fa1ae39480 Update Changelog 2017-12-01 12:15:35 +05:30
Kovid Goyal 96483a0e92 Finish single_instance implementation 2017-12-01 12:15:35 +05:30
Kovid Goyal 7deb68de61 Get IPC working 2017-12-01 12:15:35 +05:30
Kovid Goyal bf09c33b99 Move option_parser into its own module 2017-12-01 12:15:35 +05:30
Kovid Goyal 9e5882c9fb Code to handle messages from peers 2017-12-01 12:15:35 +05:30
Kovid Goyal c5d17934e4 Function to establish IPC communication 2017-12-01 12:15:35 +05:30
Kovid Goyal c8c1a3618c Get the user cache dir path on macOS 2017-12-01 12:15:35 +05:30
Kovid Goyal 593b4c5a46 Use sigaction() rather than signal() to register signal handlers 2017-12-01 12:15:35 +05:30
Kovid Goyal d7ea28f8e7 Fix sprite texture not initially bound for new OSWindow 2017-12-01 12:15:35 +05:30
Kovid Goyal c4bcda80e9 Fix removing OSWindow breaking pointer references in glfw 2017-12-01 12:15:34 +05:30