summaryrefslogtreecommitdiff
path: root/src/helpers
Commit message (Collapse)AuthorAgeFilesLines
* IME: Improve handling of text-input and ime-relay (#5147)joshua2024-03-191-6/+3
| | | | | | | | | | | | | * input: Handling multiple surfaces for the text-input-v1 protocol implementation and imporve InputMethodRelay logic fixes #2708 * clang-format * minor style nits --------- Co-authored-by: Vaxry <vaxry@vaxry.net>
* animations: fix layer slide with fadeVaxry2024-03-181-1/+2
| | | | fixes #5151
* swipe: Touchscreen workspace swipe (#4489)Zach DeCook2024-03-171-0/+1
| | | | | | | | | * Workspace Swipe: Refactor update and end functions * Touch: Implement workspace swipe better ignoring additional fingers and new touches allow gaps-right and gaps-left to be different
* renderer: don't render window on other mons during anim inVaxry2024-03-171-0/+5
| | | | fixes #5139
* renderer: add better multi monitor animations (#5126)thejch2024-03-162-0/+19
|
* splashes: add 2ya splashVaxry2024-03-151-1/+3
|
* xwayland: fix no_xwayland compilesVaxry2024-03-091-1/+3
|
* internal: Support libhyprcursor (#5009)Vaxry2024-03-091-4/+0
| | | | | | | woo --------- Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
* format: make ci happyVaxry2024-03-081-2/+2
|
* socket2: Add 5 IPC event with support for workspace ID (#5022)Aaron2024-03-081-3/+2
| | | | | | | | | | | - `moveworkspacev2`: returns workspaceID,workspaceName,monitorName - `movewindowv2`: returns windowAddress,workspaceID,workspaceName - `createWorkspacev2`: returns workspaceID,workspaceName - `destroyWorkspacev2`: returns workspaceID,workspaceName - `workspacev2`: returns workspaceID,workspaceName - Include workspaceID as a parameter in CWorkspace constructor to support `createWorkspacev2`. Resolves #4929
* windowrules: Make min/maxsize rules dynamic (#4775)Epilepsy Gatherings2024-03-082-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rebase * simplify and remove prop * Stuff - add back win prop - change minsize defaults - change request formatting for setprop * style fix * remove empty line * change defaults * redo string to vec * remove redundant parsing * change to vec * support commas * remove static rules * take out garbage * format * don't allow commas and resize on setprop * use isNumber
* layout: Fix toggling fullscreen special workspace on different monitor (#5000)thejch2024-03-071-0/+10
| | | | | | | * fix toggling fullscreen special ws on different monitor * add for dwindle * fix change regular workspace when special fullscreen
* animations: fix m_Goal not being set after #4911 (#4992)outfoxxed2024-03-061-0/+1
|
* monitor: remove commas from short description (#4970)Junxuan Liao2024-03-051-3/+3
| | | | | | | Since `hyprctl monitor` shows szShortDescription now, it needs to be sanitized. (See #2457) Also, monitor selectors are now compared against szShortDescription and szDescription to avoid re-striping the string.
* keybinds: Allow fullscreen/maximize in special workspace (#4921)thejch2024-03-041-0/+8
| | | | | | | | | | | | | | | * allow fullscreen/maximize in special workspace * remove duplicate code * hide top layer * fix special fullscreen deco * edit * fix fade top layer when toggle special * remove double render
* config: improve config value infrastructureVaxry2024-03-032-11/+14
|
* xkb: handle invalid keymaps in updateXKBTranslationStateVaxry2024-03-031-3/+16
| | | | fixes #4941
* input: Rewritten pointer constraints (#4889)Vaxry2024-03-022-109/+4
| | | | | | | | | | | | | | | | | * rewritten constraints * send pointer enter on activate if not pointer focus * minor cleanup * simulate movement on commit * don't ignore oneshot prop * various fixes * dont send motion on confined * update pos hint on region change
* keybinds: better follow xkb translation stateVaxry2024-03-022-0/+66
| | | | fixes #4908
* animations: Refactor AnimatedVariable (#4911)GartoxFR2024-03-025-241/+170
| | | | | | | | | | | | | | | | | | | | | | | * 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
* build: fix libc++/clang build (#4886)Anton Samokhvalov2024-02-291-2/+2
|
* xdg: rewrite entire popup implementationVaxry2024-02-291-28/+4
|
* refactor: move a few things to desktop/Vaxry2024-02-297-720/+2
|
* subsurface: Rewrite the subsurface tree (#4877)Vaxry2024-02-295-379/+294
|
* surfacetree: Revert "subsurfaceTree: assign surfaces to a CWLSurface"Vaxry2024-02-282-2/+0
| | | | | | This reverts commit 51b1b17fcbb6c13667710a6bebac1003a5231bd2. Crash issues, fixes #4874
* subsurfaceTree: assign surfaces to a CWLSurfaceVaxry2024-02-282-0/+2
| | | | fixes #4872
* layers: minor fixes for new animationsVaxry2024-02-281-1/+1
|
* layers: add fully featured animationsVaxry2024-02-282-17/+143
| | | | | | | | Adds configs and layerrules to handle them alas fixes #981 I have cooked
* config: Add option to resolve keybinds by sym instead of code (#4851)Tobias Zimmermann2024-02-271-4/+6
| | | | | | | | | | | | | | This commit adds the new configuration option 'resolve_binds_by_sym' which can be set globally or per-device. It is off by default, which preserves the current behavior. This setting only affects the behavior of keybinds that are defined via key symbols, not those defined via keycode. Binds defined by symbols currently activate if the keycode pressed would generate the specified symbol on the first layout specified in the input section. If enabled, keys pressed on the relevant device will instead match keybinds by the symbols they produce with their current layout. Closes #1881.
* wayland: implement keyboard_shortcuts_inhibit_v1Vaxry2024-02-271-0/+10
| | | | fixes #4568
* config: add defaultName for workspace rulesVaxry2024-02-271-0/+4
| | | | alas, fixes #665
* avar: return curve value of 1 when not animatedVaxry2024-02-271-0/+3
| | | | fixes #4862
* input: Map touch devices and tablets bound to an output (#3544)Philip Damianik2024-02-273-2/+32
| | | | | | | | | | | * Map bound touch devices and tablets to an output * Add "[[Auto]]" default option for auto detecting outputs for touch inputs * Bind new monitors to configured touch and tablet devices * Use Monitor::matchesStaticSelector in CConfigManager::getMonitorRuleFor * Use Monitor::matchesStaticSelector in CCompositor::getMonitorFromString
* surface: ensure global pointers valid before using in destructor (#4844)github-usr-name2024-02-261-3/+3
| | | | | | This fixes an observed SigSegV resulting from the cursor surface using `g_pInputManager` when invoked from the `CInputManager` destructor Co-authored-by: github-user-name <spam-here@github.com>
* renderer: nuke lastFrameDamage and rework finalDamageVaxry2024-02-231-2/+0
| | | | this fucking SUCKED
* surface: fix damage calcs with a viewport srcvaxerski2024-02-201-1/+10
|
* format: fix formattingVaxry2024-02-191-2/+3
|
* surface: minor fixes for last logicalDamage calc fixvaxerski2024-02-191-2/+2
|
* surface: fix invalid damage tracking in damageSurfacevaxerski2024-02-194-1/+23
| | | | ref #4744
* Migrate the config to hyprlang (#4656)Vaxry2024-02-186-16/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* monitor: don't damage twice (#4727)Abílio Costa2024-02-171-3/+1
| | | | | | | | | 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>
* socket2: `monitoraddedv2` IPC event for monitor description and id (#4646)Jacob Birkett2024-02-152-2/+10
| | | | | | | | | * add monitor szShortDescription without DRM node name * change hyprctl to use szShortDescription * add monitoraddedv2 event * add monitor ID as first param of monitoraddedv2
* renderer: accept custom state requests for fake outputsVaxry2024-02-141-27/+28
|
* keybinds: Fix focus not moving along when moving workspace (#4660)Sefa Eyeoglu2024-02-092-3/+3
| | | | | --------- Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
* vector: avoid min0 clamps without a max being invalidVaxry2024-02-051-1/+1
|
* input: focus window on mouse down on decoration (#4514)MightyPlaza2024-02-043-1/+7
| | | Also unifies vectorToWindow funcs
* box: add missing includeVaxry2024-02-031-0/+4
|
* dwindle: avoid sending negative sizes to wlrVaxry2024-02-022-0/+8
| | | | fixes #4591
* subsurfaceTree: Fix nullptr crash when disconnecting a monitor (#4577)Abílio Costa2024-02-011-1/+1
| | | | | | I was able to reproduce this frequently by having a kitty terminal on an monitor running the following command and then unplugging that monitor: `while true; do echo "" && sleep 0.02; done`
* monitor: wrap usage of wlr_output_stateVaxry2024-01-282-25/+61
| | | | | | for better control and convenience in usage. fixes #4546