summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
Commit message (Collapse)AuthorAgeFilesLines
* core: move to hyprutils for utils (#6385)Vaxry2024-06-111-2/+5
| | | | | | | | | | | | | * core: move to hyprutils for utils Nix: add hyprutils dep * Meson: add hyprutils dep * flake.lock: update --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* wayland/core: move to new impl (#6268)Vaxry2024-06-081-12/+12
| | | | | * wayland/core/dmabuf: move to new impl it's the final countdown
* windows: make new_window_takes_over_fullscreen use the new window's ↵Connor Wong2024-05-271-5/+5
| | | | | | | workspace (#6263) * fix new_window_takes_over_fullscreen behavior * missed a few things
* xwayland: move to hyprland impl (#6086)Vaxry2024-05-251-256/+14
|
* xdg-shell: move to new implVaxry2024-05-141-145/+30
|
* wl_seat: move to hyprland implVaxry2024-05-141-1/+2
|
* xwayland: Remove delta for real position with xwayland zero scaling (#6057)Daniil2024-05-141-2/+0
|
* layer-shell: move to new implVaxry2024-05-091-1/+2
| | | | Also bumps the hw-s dep
* cursor: move to a hyprland implVaxry2024-05-091-3/+3
| | | | | | | This moves wlr_cursor to a completely new impl mostly under CPointerManager Also adds beginSimple to OpenGL for simple render passes (e.g. cursor)
* windows: Revert "window: set config only when both props end anims" (#5904)outfoxxed2024-05-061-3/+3
| | | | | This reverts commit 7617c03dfd0073654ca8c4d9a6f5db278d14cd28, fixing a bug that caused the bottom right corner of windows to animate oddly.
* internal: new shared_ptr and weak_ptr implementation (#5883)Vaxry2024-05-051-2/+2
| | | | | | | | | | | moves std::shared_ptrs to a new implementation Advantages: - you can dereference a weak_ptr directly. This will obviously segfault on a nullptr deref if it's expired. - this is useful to avoid the .lock() hell where we are 100% sure the pointer _should_ be valid. (and if it isn't, it should throw.) - weak_ptrs are still valid while the SP is being destroyed. - reasoning: while an object (e.g. CWindow) is being destroyed, its `weak_ptr self` should be accessible (the sp is still alive, and so is CWindow), but it's not because by stl it's already expired (to prevent resurrection) - this impl solves it differently. w_p is expired, but can still be dereferenced and used. Creating `s_p`s is not possible anymore, though. - this is useful in destructors and callbacks.
* input: Introduce basic hyprland HID classesVaxry2024-05-031-1/+1
| | | | | | Implements an intermediary HID class for mice, keyboards and touch devices, removing the old structs from WLClasses.hpp Yes, virtual ones are duplicated a bit, but will likely be de-duped once wlr_input_device is not used anymore.
* internal: store matched windowrules and emit eventVaxry2024-05-021-4/+4
| | | | new event for plugins, windowUpdateRules
* socket2: fix empty activewindowv2 eventsVaxry2024-05-011-1/+1
| | | | fixes #5827
* xdg-activation: move to new implVaxry2024-04-291-16/+0
|
* windowrules: add subtract window option to move rule (#5770)niki-on-github2024-04-271-2/+10
| | | Co-authored-by: nix <nix@local>
* internal: Window storage rework - part 1 (#5762)Vaxry2024-04-271-75/+77
| | | | | | | | | | | | | | | | | * Window storage rework - part 1 * format * remove useless include * fix pch * format * fix crash in dwindle * fix vram leak * prefer .expired() for bool checks
* events: set window initial* before searching for rulesVaxry2024-04-251-3/+2
|
* wlr-foreign-toplevel: move to new implVaxry2024-04-251-41/+7
|
* style: fix clang-formatVaxry2024-04-241-1/+1
|
* tokens: add more modes to initial_workspace_trackingVaxry2024-04-241-4/+15
| | | | | | 1 is single-shot, 2 is persistent fixes #5732
* windows: don't force workspace change on same tracked workspaceVaxry2024-04-231-2/+4
|
* windows: add misc:initial_workspace_trackingVaxry2024-04-231-11/+33
| | | | | | By default enabled, will track the initial opened workspace of a window spawned for 2 minutes or until it's moved to a different workspace. For example: you run a launcher and open an app on workspace 1, but quickly switch to workspace 2. The app will now open on workspace 1 regardless of your switch.
* xdg-decoration: move to new implVaxry2024-04-211-5/+0
|
* workspaces: add visible flagVaxry2024-04-031-29/+30
|
* Workspace/core: Refactor workspace storage (#5380)Vaxry2024-04-021-15/+15
| | | | | * refactor workspaces to use ptrs * clang-format
* layout: improve initial size prediction for floatingVaxry2024-03-291-16/+1
|
* core: ensure m_pLastMonitor validity over unsafe stateVaxry2024-03-261-0/+4
| | | | ref #5241
* xwayland: assign wlr_surface on associateVaxry2024-03-241-2/+4
|
* window: assign surface on createVaxry2024-03-231-0/+6
| | | | ref #5076
* window: set config only when both props end animsVaxry2024-03-191-3/+3
|
* renderer: don't render window on other mons during anim inVaxry2024-03-171-0/+3
| | | | fixes #5139
* events: ignore setTitle when title didn't changeVaxry2024-03-131-1/+6
|
* input: fix minor default cursor reset conditionsVaxry2024-03-091-0/+3
|
* windowrules: Make min/maxsize rules dynamic (#4775)Epilepsy Gatherings2024-03-081-28/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* surface: fix damage tearing feedbackVaxry2024-03-051-0/+16
| | | | fixes #4935
* config: improve config value infrastructureVaxry2024-03-031-26/+27
|
* windowrules: fix centerVaxry2024-03-031-1/+1
| | | | fixes #4934
* events: update render data after workspace window rule (#4931)JManch2024-03-021-2/+2
|
* input: Rewritten pointer constraints (#4889)Vaxry2024-03-021-3/+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
* xdg: minor improvements to initial size reportingVaxry2024-03-021-2/+2
| | | | fixes #4918
* events: don't switch to active workspace on workspace ruleVaxry2024-03-021-1/+1
|
* animations: Refactor AnimatedVariable (#4911)GartoxFR2024-03-021-40/+40
| | | | | | | | | | | | | | | | | | | | | | | * 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
* xwayland: set scaledBy for unmanaged windows in mapVaxry2024-03-011-1/+8
|
* core: fix crashes on access of deleted wlr_ surfaceVaxry2024-02-291-0/+2
| | | | ref fixes #4893
* xdg: rewrite entire popup implementationVaxry2024-02-291-3/+4
|
* subsurface: Rewrite the subsurface tree (#4877)Vaxry2024-02-291-15/+2
|
* xdg: check for floating conditions before sending tiled size hintVaxry2024-02-281-3/+20
| | | | ref #4871
* layout: add size prediction for initial xdg commitsvaxerski2024-02-281-1/+3
| | | | fixes #4022
* layout: Fixed ghost window when opened while fullscreen on a different ↵Tom Benham2024-02-251-2/+3
| | | | | | | | | | | workspace (#4822) * Fixed ghost window when opened while fullscreen on a different workspace * Format --------- Co-authored-by: Tom Benham <tom.benham@quadrille.fr>