Commit Graph

439 Commits

Author SHA1 Message Date
Vaxry 5e3b8c3233
Merge pull request #807 from Dickby/fix_monitor_transforms
Transform the box data send to texture shaders.
2022-10-07 20:12:28 +01:00
Felix Dick bbdfb7853d Transform the box data send to texture shaders. 2022-10-07 20:55:41 +02:00
Vaxry 1468001d3b offset floating windows out of bounds on ws anims 2022-10-07 12:34:54 +01:00
Vaxry 7faa3c367d Added clipping support, clip windows on slide anim 2022-10-07 10:43:51 +01:00
Felix Dick e8be1507ef Remove texcoord from QUADFRAGSRC.
texcoord is unused in the rounding part of the textureshaders.
QUADFRAGSRC isn't using that variable inside the non rounding code.
Because of that opengl optimizes that variable out, and is complaining
if glGetAttribLocation is called on it.
2022-10-05 00:04:32 +02:00
Vaxry 7bdfdaa28a
Merge pull request #742 from Dickby/rework_rounding_shader
Rework rounding shader
2022-10-04 14:17:16 +01:00
Vaxry bbeed21e62 fix crash 2022-10-01 08:54:43 +01:00
Felix Dick c6333ba796 Remove unused ignoreCorners variable from texture shaders. 2022-10-01 03:30:58 +02:00
Felix Dick 6fe103cf06 Cut the number of pixels that call length() in half. 2022-10-01 03:14:13 +02:00
Felix Dick 71733f68ef Merge branch 'fix_rounding_in_size_changing_windows' into rework_rounding_shader 2022-10-01 01:35:13 +02:00
vaxerski 7579e03b64 include shaders only in opengl.cpp 2022-09-30 18:38:10 +01:00
vaxerski 1ef23a304a remove redundant attrib setting 2022-09-30 17:04:33 +01:00
vaxerski 3c27d1ab13 optimize vector config value setting 2022-09-30 17:03:14 +01:00
Felix Dick d867d42366 Merge branch 'main' into fix_rounding_in_size_changing_windows 2022-09-30 01:38:50 +02:00
Felix Dick 6eb7d00386 Send absolute screen coordinates to texture shaders. 2022-09-29 23:19:56 +02:00
Felix Dick b38e7b596f Don't pass bottomRight to textureShaders compute it within. 2022-09-29 21:10:05 +02:00
Felix Dick ab42e4bccf Merge branch 'main' into fix_bordersize_again 2022-09-29 14:29:03 +02:00
Felix Dick 425b07d1e5 Merge branch 'main' into rework_rounding_shader 2022-09-29 14:24:59 +02:00
Vaxry dcf5e34bfa
Merge pull request #735 from Dickby/fix_splash_position
Splash position fix
2022-09-29 10:07:27 +01:00
Felix Dick 65fb526d5c Even less branching (taken more or less from the border shader). 2022-09-29 06:56:17 +02:00
Felix Dick 10c4f4ba35 Shift splash up if monitor has wider ratio than bgTexture. 2022-09-29 05:29:03 +02:00
Felix Dick a1319e5110 Merge branch 'main' into fix_bordersize_again 2022-09-29 01:42:28 +02:00
Felix Dick 5233746ac5 Change scaledBorderSize to int. 2022-09-29 01:40:19 +02:00
Felix Dick 0549aa193f fixing your shit. 2022-09-28 23:33:18 +02:00
Felix Dick 168a326609 Merge branch 'main' into rework_rounding_shader 2022-09-28 23:11:11 +02:00
Felix Dick 11ee78f88b Use double literals, don't cast a integer literal to double. 2022-09-28 20:08:41 +02:00
Felix Dick 7edbaea23d Make the rounding texture shaders smaller and more efficient. 2022-09-28 18:40:04 +02:00
Felix Dick 5ff44467d7 Avoid 38 files to compile every time a shader is modified. 2022-09-28 14:48:05 +02:00
Felix Dick 87afc8c250 Replace clamp with max if there is no upper bound. 2022-09-26 21:10:24 +02:00
Felix Dick cd2b2c4fba Scale the border size, revert the window scaling according to border 2022-09-26 17:38:08 +02:00
Felix Dick c48336aac3 Scale the cairo matrix to fit the monitor dimensions. 2022-09-26 06:35:00 +02:00
Felix Dick bf3f519eb7 Remove trailing whitespace. 2022-09-25 20:07:48 +02:00
Vaxry 65fb0cf0f6 fix custom rules on null modelist 2022-09-24 13:10:11 +01:00
Vaxry 5101ddeff1 fix oopsies in rule code 2022-09-24 11:30:41 +01:00
Vaxry abee2da5bd
Merge pull request #706 from DashieTM/main
Add "highest" mode to Monitor for autoconfiguration.
2022-09-23 16:50:24 +01:00
Vaxry 695411f1bd don't decorate on only no gaps 2022-09-23 16:47:58 +01:00
Fabio Lenherr c4e782ca5d remove more silly mistakes 2022-09-22 00:50:23 +02:00
Fabio Lenherr da2c2ddc21 remove empty line 2022-09-22 00:47:09 +02:00
Fabio Lenherr 5272588270 fix silly mistakes 2022-09-22 00:45:56 +02:00
Fabio Lenherr 215125bd66 add refreshrate or resolution preference 2022-09-22 00:22:39 +02:00
Fabio Lenherr 30d16373d0 fix Hz Log 2022-09-21 22:40:01 +02:00
Fabio Lenherr c1feb683ce added high to monitor resolution 2022-09-21 22:29:52 +02:00
Fabio Lenherr / DashieTM d51c7ca135 change Preferred mode to use highest refreshrate 2022-09-20 23:41:03 +02:00
Vaxry 7a9423c782 better dwindle swapping with groups 2022-09-20 18:04:39 +01:00
Vaxry 85c7aaf155 fade control for fullscreen action on windows 2022-09-19 17:26:11 +01:00
Vaxry 7c809a3059 fullscreen animation en-nice-ment 2022-09-19 10:23:13 +01:00
Vaxry dd61f88ed1 guard invalid FB allocs 2022-09-18 12:40:49 +01:00
Vaxry cf32d28082 fix groupbar being wonk on scaled 2022-09-18 12:13:16 +01:00
vaxerski e9f226797e Added monitor mirroring 2022-09-13 15:25:42 +02:00
vaxerski a09c614c2d more forceRendering checks in shouldRenderWindow 2022-09-12 15:33:25 +02:00
vaxerski 864e227f5d fix decos on pinned 2022-09-11 20:27:59 +02:00
vaxerski d94fe3d063 added window pinning 2022-09-10 13:11:02 +02:00
vaxerski 49a55f136e fix addreserved lag 2022-09-08 14:11:32 +02:00
vaxerski 5b5f36f494 fix transformed blur on new optimizations 2022-09-05 21:26:21 +02:00
vaxerski 3ea89e6171 fix splash positioning 2022-09-05 11:31:54 +02:00
vaxerski 3dd514a452 fix a damage issue with transformed blur 2022-09-04 23:08:04 +02:00
vaxerski 6afab12b91 fix blur on transformed displays 2022-09-04 19:27:38 +02:00
vaxerski fbd2b4799d Fix some more crimes against humanity 2022-09-03 22:49:52 +02:00
vaxerski 7f62cbc48a Update wlroots dep 2022-09-01 11:24:15 +02:00
vaxerski eb658dcb61 finally fixed transformed snapshots 2022-08-30 19:40:19 +02:00
vaxerski 48eb2e0d6f Added window dimming 2022-08-30 12:46:17 +02:00
vaxerski 179562b646 fix dwindle groupbars 2022-08-29 19:52:35 +02:00
vaxerski 5726f394b1 fix subsurface UV handling on oversized windows 2022-08-28 14:43:25 +02:00
vaxerski f5f99c6700 reset uv on invalid buffer source box 2022-08-28 14:32:06 +02:00
vaxerski 4203a61b69 minor fixes to the viewporter behavior 2022-08-28 10:41:47 +02:00
Vaxry 52c0ba544c
Viewporter implementaion (#585)
Implementation of the `wp_viewporter` core protocol and some bugfixes
2022-08-28 10:14:43 +02:00
vaxerski ed2cacc5d5 fix styling in const ptrs 2022-08-27 21:37:35 +02:00
vaxerski dbd774fedb simplify a bit of code 2022-08-26 18:02:10 +02:00
vaxerski f9b2aa5468 don't round popups 2022-08-23 16:54:32 +02:00
vaxerski a9e34cba93 move monitor damage to separate funcs 2022-08-23 16:07:47 +02:00
vaxerski 52318692f0 clean up temp logic in snapshots 2022-08-22 13:38:40 +02:00
vaxerski 86be6c3884 fix LS snapshot rendering logic 2022-08-22 13:36:00 +02:00
vaxerski 9513031da3 fix a minor border issue 2022-08-20 22:45:30 +02:00
vaxerski 08e874bcf9 fix special workspace windows being xray with new optim 2022-08-20 20:16:04 +02:00
Vaxry 6cae44e2c0 fix custom rounding in shadow deco 2022-08-19 14:52:18 +02:00
Roger Roger eca6e53bd7 Animate workspaces with fullscreen windows 2022-08-18 12:42:21 +02:00
Roger Roger f2d3aecf00 Don't draw fullscreen windows on other monitors 2022-08-18 12:41:10 +02:00
Roger Roger 5a20573e91 Fix workspace animation showing on other monitors 2022-08-17 12:12:16 +02:00
Vaxry bec7501365 fix borders on no_gaps_when_only 2022-08-16 16:19:52 +02:00
Vaxry bfe0f844d2 fix wallpaper pixelation in some cases 2022-08-13 22:33:51 +02:00
Vaxry db35a1c6d0 ensure egl is current in begin 2022-08-12 17:10:07 +02:00
Vaxry 37442db20e destroy program in shader destructor 2022-08-11 20:33:35 +02:00
Vaxry b178891ab3 compile shaders for every context separately 2022-08-11 20:29:21 +02:00
Vaxry 69db6207c0 don't damage in unsafe state 2022-08-10 23:14:53 +02:00
Vaxry f64f94ca56 scale rounding in shadows 2022-08-10 18:29:37 +02:00
Vaxry 96f3b62429 multiply by scale in rounding 2022-08-10 18:22:01 +02:00
Vaxry 0162da7a7c adjust curve size for scaled 2022-08-10 18:10:38 +02:00
Vaxry 1744be7bdd log more in output cfg 2022-08-07 19:28:31 +02:00
vaxerski 74cbfdcda4 guard zero border 2022-08-05 22:21:14 +02:00
vaxerski d72f1cc644 fix various shadow damage issues 2022-08-05 19:23:53 +02:00
vaxerski e0ada97a24 support zwp_input_method_v2 popups 2022-08-05 17:07:01 +02:00
vaxerski 3947fe9e9f simplify border rendering when rounding is 0 2022-08-04 17:21:01 +02:00
vaxerski 07f68bf72a scale shadows properly 2022-08-04 11:18:33 +02:00
vaxerski 81308a9cc3 add position auto for mon config 2022-08-04 11:10:26 +02:00
vaxerski 587330d864 fix recursion bomb 2022-08-03 17:32:12 +02:00
vaxerski 179e5188a4 remove incorrect border thickness calc 2022-08-03 12:03:15 +02:00
vaxerski 02fbb3a417 fix preferred mode 2022-08-02 22:20:45 +02:00
vaxerski 00747fc6df fix preWindowPass with floating as first 2022-08-01 20:32:46 +02:00
vaxerski 523023aec7 mark blur dirty on monitor damage 2022-08-01 20:28:20 +02:00
vaxerski 024752bbe3 fix new blur optimizations with non-full damage 2022-08-01 20:18:26 +02:00
vaxerski e794de1f4d guard texid in new optimized blur 2022-08-01 19:50:37 +02:00
vaxerski cb36456f40 optimize new blur rendering 2022-08-01 15:32:20 +02:00
vaxerski b90159c089 revert blur changes 2022-08-01 15:29:49 +02:00
vaxerski 0ba17d4da3 fix oopsie with optim 2022-08-01 15:28:14 +02:00
vaxerski d6e227ae0d don't stencil with new optimizations in blur 2022-08-01 15:24:42 +02:00
vaxerski 60c16f77a6 added master:no_gaps_when_only 2022-08-01 12:57:37 +02:00
vaxerski f892387b70 added dwindle:no_gaps_when_only 2022-08-01 12:51:52 +02:00
vaxerski 6378990bc3 fixes to the new blur system 2022-08-01 12:23:09 +02:00
vaxerski 070d7699a7 added decoration:blur_new_optimizations 2022-08-01 12:16:33 +02:00
vaxerski 46e18e08d1 contain for the hyprland default bg 2022-07-31 23:44:04 +02:00
vaxerski 575c3e071a fix ls fadeout on scaled 2022-07-31 17:20:33 +02:00
vaxerski 0573d5987f dont account for scale in border thick 2022-07-31 00:07:35 +02:00
vaxerski e5cef8fc96 account for scale in downrounding 2022-07-31 00:04:34 +02:00
vaxerski 382f851b30 account for border in rounding 2022-07-31 00:00:24 +02:00
vaxerski d6a649c1b3 added preferred to monitor cfg 2022-07-30 22:54:29 +02:00
vaxerski 4211b37e22 added misc:damage_entire_on_snapshot 2022-07-30 22:26:46 +02:00
vaxerski 45747fb8e6 fix snapshots on scaled 2022-07-30 22:22:51 +02:00
vaxerski adeab98831 some window fadeout fixes 2022-07-30 22:07:40 +02:00
vaxerski 036be18bf5 fix shader fix 2022-07-30 19:00:38 +02:00
vaxerski e56699826f Optimize shaders 2022-07-29 17:07:33 +02:00
vaxerski ac8e5fef10 even more damage scaled fixes 2022-07-29 11:52:56 +02:00
vaxerski 429a9bc6c3 hide only XWayland on incorrect size 2022-07-29 11:45:32 +02:00
vaxerski 0f19bd99f8 more scaled surface damage fixes 2022-07-28 23:21:35 +02:00
vaxerski f0cd784f79 fixes to surface damaging on scaled 3 2022-07-28 22:41:59 +02:00
vaxerski 7a2f296c93 surface damage fixes 2 2022-07-28 22:23:27 +02:00
vaxerski 0b0cd85085 surface damage fixes 2 2022-07-28 22:23:00 +02:00
vaxerski 3f62a386bf surface damage fixes 2022-07-28 22:15:56 +02:00
vaxerski 13d9c85e4e fix alpha with xwl opacity 2022-07-28 18:17:47 +02:00
vaxerski 9afa3953e9 fix crash oopsie 2022-07-28 17:56:11 +02:00
vaxerski 0e2038fedf minor fullscreen anim fixes 2022-07-28 16:33:45 +02:00
vaxerski 6d35d642ea fix fullscreen workspace slide anims 2022-07-28 15:56:55 +02:00
vaxerski 9dd17a4be6 Added toggleopaque dispatcher 2022-07-28 12:07:41 +02:00
vaxerski ee15ad1215 render ls popups correctly 2022-07-27 18:02:20 +02:00
vaxerski c9c4b14ef2 optimize xwayland has_alpha blur 2022-07-27 13:30:55 +02:00
vaxerski cb1a36faf0 missed 2 structs 2022-07-27 12:36:56 +02:00
vaxerski 31a079b347 added DPMS 2022-07-27 12:32:00 +02:00
vaxerski 1626707b7f make layerSurfaces into RAII 2022-07-23 15:48:08 +02:00
vaxerski 9463e3eb0a fix transformed snapshots a bit 2022-07-20 16:28:05 +02:00
vaxerski e6b151b6c3 fix memory read after free in damageSurface 2022-07-20 12:06:14 +02:00
vaxerski 0281caa8e0 fix ASan error 2022-07-19 13:36:54 +02:00
vaxerski 10a83853ac added ls noprocess 2022-07-18 21:16:01 +02:00
vaxerski 90d07d7b52 fix shadows on unmanaged and noborder 2022-07-18 12:39:57 +02:00
vaxerski f5bd30569f fix borders on scaled 2022-07-16 23:29:42 +02:00
vaxerski cb2989cec5 fix fade corner artifacts 2022-07-16 21:10:16 +02:00
vaxerski 16afa2c422 fix border rendering on certain windows
oversized subsurfaces had a tendency to be above borders, now they wont be
2022-07-16 20:57:59 +02:00
vaxerski 48e5bd96bc Added shadow colors animations and inactive col 2022-07-16 12:44:45 +02:00
vaxerski 1441856811 fix blur on oversized, default to enabled 2022-07-15 19:21:13 +02:00
vaxerski 19c646ab47 Minor changes to the renderer's overflow behavior
Won't squish base layers anymore
2022-07-15 19:07:06 +02:00
Vaxry 6708f3b133
Fixed TTY switching (#364) 2022-07-13 18:18:23 +02:00
vaxerski bf762f566f Fix VRAM memory leak when releasing snapshots 2022-07-12 23:11:34 +02:00