1
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2025-07-26 09:41:57 -07:00
Commit Graph

487 Commits

Author SHA1 Message Date
Vaxry
063708df26 config: improve config value infrastructure 2024-03-03 18:41:38 +00:00
JManch
1762e9c6ec renderer: respect forceNoBlur when rendering small surface windows () 2024-03-03 00:17:40 +00:00
GartoxFR
b2c3440477 animations: Refactor AnimatedVariable ()
* animation: Refactor AnimatedVariable

This commit decomposes the AnimatedVariable class into a base class
with the common attribute to all variable types and a templated derived
type containing strongly typed info on the type being animated.

Access to the typed version is perfomed using the visitor pattern. A
utility is provided to build a visitor on the fly using lambdas.

Adding a new type to be animated should just be a matter of adding the
typed in the list defined by the ANIMABLE_TYPES macro

The size of the commit is justified by the API change in the
AnimatedVariable class. No more vec(), fl() or col() method but a unified
value() method.

* animation: Remove visitor pattern

* animation: Fix coding style

* animation: Fix coding style
2024-03-02 00:35:17 +00:00
Vaxry
f115ba94d2 xwayland: set scaledBy for unmanaged windows in map 2024-03-01 23:04:34 +00:00
Vaxry
e63b4b18aa renderer: force a few render frames on init anim end
fixes 
2024-02-29 19:04:40 +00:00
Vaxry
6916d0a6a3 surface: unify owners 2024-02-29 15:07:14 +00:00
Vaxry
a31433c215 renderer: damage whole ring on failed commit
fixes 
2024-02-28 18:00:02 +00:00
Vaxry
4bc669f933 layers: add fully featured animations
Adds configs and layerrules to handle them

alas fixes 

I have cooked
2024-02-28 15:00:40 +00:00
Vaxry
dfcfb92ec6 renderer: take into account fading out windows in solitary recheck 2024-02-26 00:19:16 +00:00
Vaxry
8c3613632a renderer: nuke lastFrameDamage and rework finalDamage
this fucking SUCKED
2024-02-23 01:02:32 +00:00
Vaxry
c1ef361e02 renderer: fix logs 2024-02-23 00:02:48 +00:00
Vaxry
35e80a64a6 renderer: add more logging for fails in beginRender 2024-02-22 23:50:56 +00:00
Vaxry
c353b7c4f7 renderer: minor fixes for introspection detection 2024-02-22 23:01:22 +00:00
André Silva
e5eb1bdf01 renderer: ignore set cursor surface if cursor should be hidden () 2024-02-21 13:48:48 +00:00
Vaxry
d62e7a5125 renderer: fixup damage_ring rotation 2024-02-19 19:11:05 +00:00
vaxerski
1763566308 surface: minor fixes for last logicalDamage calc fix 2024-02-19 11:34:55 +00:00
vaxerski
e4790e3f8e surface: fix invalid damage tracking in damageSurface
ref 
2024-02-19 11:24:54 +00:00
Vaxry
301b48b740 renderer: fix invalid damage accumulation with invalid buffer_age
fixes 
2024-02-18 16:04:08 +00:00
Vaxry
13f6f0b923 Migrate the config to hyprlang ()
* Migrate to hyprlang

* pop up errors

* fix swapped args

* Meson & Nix: build with hyprlang

* CI: add hyprlang to setup action

* add infra for plugin stuff

* fix hyprctl getoption

* fix hyprctl getoption with json

* format

* fix post parse logic

* fix autogen config

* oops missed exec-once

* fmt

* fix ws rules

* require 0.3.0 for hyprlang

* nix: flaek

* minor type fixes

* fix cfg usages in swipe

* use cvarlist for ws rules

* fix throw in addPluginConfigVar

* Nix: update hyprlang

* minor fixes

* fix disableLogs

* mention hyprlang docs

* bump hyprlang dep in cmake

* Meson: bump min hyprlang version

Nix: update hyprlang

* minor fix

* Nix: update meson patch

---------

Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
2024-02-18 15:00:34 +00:00
Alessio Molinari
7e8bcd675d monitors: fix outputmgr nullptr crash () 2024-02-18 02:24:01 +00:00
Abílio Costa
e3e7e1fdda monitor: don't damage twice ()
When scaled, the ring is already fully damaged, no need to add the region
damage.

Also moved a variable that was being declared way to far for where it is
actually used.

Co-authored-by: Abilio Costa <abilio.costa@criticaltechworks.com>
2024-02-17 02:09:12 +00:00
Vaxry
9c3f3b0018 renderer: don't calculate mirror damage without mirrors present 2024-02-14 22:33:50 +00:00
Vaxry
305b1419c8 renderer: accept custom state requests for fake outputs 2024-02-14 22:05:41 +00:00
vaxerski
2a002f31e4 renderer: don't set solitary on present notifications
fixes 
2024-02-14 11:09:18 +00:00
Vaxry
b500e5699b renderer: update cursor also when hostpot only changes
fixes 
2024-02-13 17:39:51 +00:00
Vaxry
cf1886ca44 renderer: avoid unnecessary gpu resource deletions
fixes 
2024-02-02 15:36:13 +00:00
Vaxry
4b4bd90b14 renderer: fixup misaligned fsv1 surfaces with uv
fixes 
2024-01-28 23:42:49 +00:00
Vaxry
bfcc2adbda monitor: wrap usage of wlr_output_state
for better control and convenience in usage.

fixes 
2024-01-28 01:57:13 +00:00
Vaxry
bc7e488a4c monitor: clear output state after usage
fixes massive lag
2024-01-27 19:11:14 +00:00
Vaxry
7b3d039388 deps: update wlroots
drops requirement for WLR_DRM_NO_ATOMIC provided kernel >= 6.8
2024-01-27 13:58:28 +00:00
vaxerski
c4365f20ed damage: use buffer_damage instead of effective_damage 2024-01-17 16:01:20 +01:00
1over137
4cee94b91c fractional: Set preferred scale on monitor config reload () 2024-01-14 14:56:35 +01:00
vaxerski
6b92144f15 surface: avoid spam of window surfaces with scale and transform events
fixes 
2024-01-11 14:07:28 +01:00
vaxerski
b240704bee renderer: allow rendering multiple fullscreen windows in third fs pass
something might be fading out, sliding out, etc. We handle it before, why not use it?

fixes 
2024-01-09 20:42:07 +01:00
vaxerski
f92a86af53 renderer: ignore box offsets for fullscreen windows 2024-01-08 19:58:15 +01:00
vaxerski
44ee9915e3 renderer: overhaul renderModifData 2024-01-07 18:35:44 +01:00
q234rty
1a4f23eb2f renderer: Only force nearest neighbor when the sizes are off by one or two ()
Fixes rendering issues in arch's extra/telegram-desktop
2024-01-01 20:20:27 +01:00
vaxerski
33444e1e5e deps: update wlroots 2024-01-01 16:47:54 +01:00
vaxerski
46997a7643 renderer: fix auto scale detection with fractional
ref 
2023-12-31 13:54:24 +01:00
vaxerski
b5b025a1ed renderer: use nearest_neighbor for misaligned fractional-scale surfaces
ref 
2023-12-31 13:11:26 +01:00
vaxerski
f771c10d1a renderer: ignore windowRequestedCursorHide
ref , thanks @dtop129

co-authored-by: dtop129
2023-12-29 00:04:01 +01:00
vaxerski
4f3ee4c645 renderer: add decoration:blur:popups_ignorealpha
fixes 
2023-12-28 22:29:04 +01:00
vaxerski
07132741bc renderer: use 120 as the denominator in scale checks 2023-12-27 23:47:01 +01:00
vaxerski
2702814a3f opengl: add toggleable nvidia_anti_flicker
ref 
2023-12-27 19:17:07 +01:00
vaxerski
e2d04ae503 renderer: add option to blur popups
closes 
2023-12-25 18:07:07 +01:00
vaxerski
f013acc6ee renderer: add occlusion for special workspaces 2023-12-23 22:41:42 +01:00
vaxerski
6c8e0f9863 config: add debug:disable_scale_checks
ref 
2023-12-23 00:21:02 +01:00
vaxerski
6b6f3396cf renderer: deny invalid scales and suggest a replacement
ref  
2023-12-23 00:09:55 +01:00
vaxerski
79ef29d6e0 renderer: apply scale to wlr after checks
ref 
2023-12-22 23:00:36 +01:00
vaxerski
37d2840246 renderer: reject non-clean scales, find nearest clean 2023-12-22 19:54:31 +01:00