Commit graph

1488 commits

Author SHA1 Message Date
Erik Reider 358d649412 Merge branch 'master' into workspace-movement 2024-05-06 21:13:41 +02:00
Reza Jelveh fb86ed6b05
feat: 1.9 merge (#277)
Co-authored-by: William McKinnon <contact@willmckinnon.com>
Co-authored-by: Erik Reider <35975961+ErikReider@users.noreply.github.com>
2024-04-15 01:39:41 -04:00
Erik Reider 2bd366f337
Add blur to tiling indicator (#252) 2024-02-15 09:48:31 +01:00
Erik Reider dec948dc80 Moved easing functions into their own file 2024-01-26 19:46:13 +01:00
Erik Reider 4f9ac2dfbb Fixed tracker value being updated even if percent isn't
Fixes long swipes still updating the tracker value even if the percent wasn't changed
2024-01-25 19:49:12 +01:00
Erik Reider b491ac42b0 Code cleanuo: Simplified adjust_* functions 2024-01-25 18:59:43 +01:00
Erik Reider 1fedb1a1ee Reset swipe on other cursor rebase 2024-01-24 11:13:30 +01:00
Erik Reider a12a8ea7b0 Merged workspace_output_next and workspace_output_next_wrap 2024-01-24 03:11:39 +01:00
Erik Reider 83e0872e79 Fixed regular views rendering behind fullscreen ones + code cleanup 2024-01-24 02:17:44 +01:00
Erik Reider 54daaa9ed2 Updated swipe percentage calculation to also use avg_velocity 2024-01-23 18:54:46 +01:00
Erik Reider 1113e5653a Added workspace_gesture_threshold config option 2024-01-22 18:25:07 +01:00
Erik Reider 0b521abe88 Added workspace_gesture_wrap_around config option 2024-01-22 18:25:07 +01:00
Erik Reider 519bfc4ecc Added workspace_gesture_spring_size config option 2024-01-22 18:02:32 +01:00
Erik Reider 3480479f17 Moved to bindworkspacegesture instead of bindgesture 2024-01-22 17:47:52 +01:00
Erik Reider 067613854b Added vertical gesture support 2024-01-22 16:40:02 +01:00
Erik Reider fdf764d3f6 Added "Spring effect" when trying to swipe past limits 2024-01-22 15:39:34 +01:00
Erik Reider 29c481da95 Workspace code cleanup 2024-01-22 15:39:34 +01:00
Erik Reider 9e551680db Try switching workspace on gesture cancel instead of reset 2024-01-22 12:21:57 +01:00
Erik Reider 44f54b9933 Removed workspace_offset command 2024-01-21 20:01:39 +01:00
Erik Reider 0c6d69b7fe Added gesture support 2024-01-21 20:01:11 +01:00
Erik Reider 4e9e7c8d1a Initial implementation of workspace movement (without gestures) 2024-01-21 13:53:11 +01:00
Erik Reider 303b7dfb69
Fixed #258 blur regression (#261) 2024-01-05 02:47:43 -05:00
ozwaldorf 04b657b58c
feat: blur tweaks (#258) 2024-01-03 12:38:44 -05:00
famfo ca42d41453
Implement shadow_offset (#255) 2023-12-22 01:08:09 -05:00
eri 2d6944dc14
feat: add shadow color for inactive windows (#230) 2023-10-23 10:58:47 -04:00
Erik Reider d89c365106
Add layer effect option to ignore transparent regions when blurring (#159) 2023-09-20 21:35:49 -04:00
William McKinnon 6f6991a1b3
refactor: simplify blur (#219)
* refactor: removed surface_width + surface_height from render_blur()

* Fixed scaling issues

* Minor refactors

* removed scaled_dst box

* removed uneeded fb bind

* removed unneeded src_box

* removed unneeded wlr_fbox_from_box function

* removed src_box

* Don't scale the blur translucent region twice

* Renamed extended_damage to original_damage to reflect better what it actually is

* Removed unneeded clearing of the wlr fbo before rendering onto it

* Removed the need for our own main FBO, also fixes some damage bugs

* Simplified detection of blur on workspace

* cleaned up comments

---------

Co-authored-by: Erik Reider <35975961+ErikReider@users.noreply.github.com>
2023-09-06 00:32:08 -04:00
Evy Garden 061dfaa2e7
Fix toplevel borders (#171)
* added check for smart

* expose gaps_to_edge

* add smart variable
2023-07-06 23:11:21 -04:00
Erik Reider 212c51f62c
fix: update stencil if the output size changes (#178) 2023-06-02 18:53:41 -04:00
Erik Reider c95306fcdf
fix: blur not being able to blur edges of damage (#168) 2023-05-30 00:18:58 -04:00
Erik Reider 415e072a3a
Add blur, shadow, and corner radius to layer-shell surfaces (#144)
Co-authored-by: Will McKinnon <contact@willmckinnon.com>
2023-05-19 21:14:06 +02:00
Erik Reider acafb20b11
Move stencil into each framebuffer (#156)
* Move stencil into each framebuffer

Also fixes the stencil being added to the wrong framebuffer

* Initialize texture members on framebuffer init

* removed bind arg

* renamed init to create, changed existing create to update

* moved stencil buffer creation to new function

* removed some now misleading comments

---------

Co-authored-by: William McKinnon <contact@willmckinnon.com>
2023-05-17 19:39:48 -04:00
William McKinnon 2c4fe20456
Blur damage tracking simplification (#155)
* suplified conditional in find_con_effect_iterator

* removed has_blur

* simplified optimized blur check

* moved damage expansion to output.c

* removed extraneous fx_renderer_scissor

* cleaned up render_output

* removed unneeded damage scale

* moved workspace optimized check function to workspace.c

* renamed ws iterator function

* added back region expansion

* removed uneeded parameter from get_main_buffer_blur

* returned extended damage

* moved get_blur_size back to original spot (reduce diff size)

* Fixed blur artifacting

* Fixed damage highlight not clearing correct framebuffer

* removed unneeded conditional

* moved initial damage expansion to output.c

* moved extended damage to the top of output_render

* moved blur damage to damage_surface_iterator

* ensure damage doesnt expand beyond output size

* removed stdint import

---------

Co-authored-by: Erik Reider <ereider20010103@gmail.com>
2023-05-16 02:26:01 -04:00
Will McKinnon ace9a222b8 style: created struct for each shader type 2023-04-30 13:35:01 -04:00
Will McKinnon 06339c325c style: moved stencil mask to its own shader 2023-04-30 12:53:26 -04:00
Erik Reider 5366c49b56
Fix: rotated outputs (#112) 2023-04-27 18:50:36 -04:00
Will McKinnon 3d1b294cc0 removed width and height parameters from fx_framebuffer_bind() 2023-04-24 00:53:55 -04:00
Will McKinnon b61041980f store viewport width & height in fx_renderer 2023-04-24 00:11:55 -04:00
Erik Reider cbfb7af7fd
Add kawase blur (#120)
Co-authored-by: Erik Reider <erik.reider@protonmail.com>
Co-authored-by: Will McKinnon <contact@willmckinnon.com>
2023-04-17 23:24:48 +02:00
Will McKinnon 420364dd19 structure: moved fx_renderer and related fuctions to a folder 2023-04-06 20:30:42 -04:00
Will McKinnon 41df328325 style: unified rounded quad shaders 2023-04-03 20:16:54 -04:00
Erik Reider f2d29ceb6b
Extend minimize logic to work with XWayland and XDG applications (#132)
* Extend minimize logic

* Removed redundant xwayland minimize logic

* minor fixes

* Fixed not properly checking if window is ran though XWayland

* Added config option with default being off

* Set scratchpad_minimize to true by default

* Improve config dependant logic

* Switch to using enable|disable instead of on|off
2023-03-26 11:44:21 -04:00
Will McKinnon 1a10c61165 refactor: merged tex shaders 2023-03-18 01:03:02 -04:00
head-gardener ac31a61216
feature: hide separator between titlebar and content (#91) 2023-03-12 03:20:50 -04:00
William McKinnon 4222b98a39
feat: tabbed layout now only rounds outer titlebar corners (#90) 2023-02-20 22:10:01 -05:00
famfo 9f20a52638
Implement for_window support for dim_inactive (#109)
* Implement for_window support for dim_inactive

* Update file names, add check if the container is null, add docs

* Fix typo

* Update meson.build

* Update commands.c

* Update render.c

* Update container.c

* Update render.c

* Update container.h
2023-02-14 20:19:02 -05:00
Erik Reider e78fc3364b
upstream update: merge sway 1.8.1 (#111) 2023-02-14 10:51:29 -05:00
Erik Reider 3efd3b558f
Add option for enabling shadows for CSD windows (#106)
* Add option for enabling shadows for CSD windows

* Disable drawing borders when CSD and shadows csd is enabled
2023-02-01 01:13:04 +01:00
rti 9e6901264b
feat: smart smart_corner_radius (#101) 2023-01-19 17:33:56 -05:00
William McKinnon 588ea8e290
feat: Add box shadows (#64)
Co-authored-by: Erik Reider <35975961+ErikReider@users.noreply.github.com>
2023-01-18 01:49:26 -05:00