summaryrefslogtreecommitdiff
path: root/src/desktop/Window.cpp
Commit message (Collapse)AuthorAgeFilesLines
* input: unify removing currentlyDraggedWindow (#7071)MightyPlaza2024-07-271-7/+1
| | | | | | | | modified: src/desktop/Window.cpp modified: src/events/Windows.cpp modified: src/layout/IHyprLayout.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/KeybindManager.hpp modified: src/managers/input/InputManager.cpp
* Core: Move to aquamarine (#6608)Vaxry2024-07-211-1/+2
| | | | | | | | | | | | | | Moves Hyprland from wlroots to aquamarine for the backend. --------- Signed-off-by: Vaxry <vaxry@vaxry.net> Co-authored-by: Mihai Fufezan <mihai@fufexan.net> Co-authored-by: Jan Beich <jbeich@FreeBSD.org> Co-authored-by: vaxerski <vaxerski@users.noreply.github.com> Co-authored-by: UjinT34 <41110182+UjinT34@users.noreply.github.com> Co-authored-by: Tom Englund <tomenglund26@gmail.com> Co-authored-by: Ikalco <73481042+ikalco@users.noreply.github.com> Co-authored-by: diniamo <diniamo53@gmail.com>
* socket2: Add windowtitlev2 event which includes the window address (#6856)Tim Waterhouse2024-07-131-0/+1
| | | Fixes #5393
* core: Improve handling of window properties (#6776)MightyPlaza2024-07-111-125/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add mWindowProperties modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp * support int values modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp * create m_sWindowData modified: src/Compositor.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/IHyprLayout.cpp modified: src/layout/MasterLayout.cpp modified: src/managers/AnimationManager.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/XWaylandManager.cpp modified: src/render/OpenGL.cpp modified: src/render/Renderer.cpp modified: src/render/decorations/CHyprBorderDecoration.cpp modified: src/render/decorations/CHyprDropShadowDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * simplify some properties modified: src/Compositor.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/managers/KeybindManager.cpp * store multiple values in CWindowOverridableVar modified: src/Compositor.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp modified: src/layout/IHyprLayout.cpp modified: src/managers/AnimationManager.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/XWaylandManager.cpp modified: src/render/OpenGL.cpp modified: src/render/Renderer.cpp modified: src/render/decorations/CHyprBorderDecoration.cpp modified: src/render/decorations/CHyprDropShadowDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * clean up modified: src/Compositor.cpp modified: src/Compositor.hpp modified: src/config/ConfigManager.cpp modified: src/config/ConfigManager.hpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/IHyprLayout.cpp modified: src/layout/IHyprLayout.hpp modified: src/layout/MasterLayout.cpp modified: src/managers/KeybindManager.cpp * use SET_PROP priority for exec rules modified: src/config/ConfigManager.hpp modified: src/desktop/Window.cpp * add default value modified: src/Compositor.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp modified: src/layout/IHyprLayout.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/XWaylandManager.cpp modified: src/render/OpenGL.cpp modified: src/render/Renderer.cpp modified: src/render/decorations/CHyprBorderDecoration.cpp modified: src/render/decorations/CHyprDropShadowDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * add setprop toggle modified: src/config/ConfigManager.hpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp * add setprop toggle modified: src/debug/HyprCtl.cpp * make window rules functional modified: src/config/ConfigManager.cpp modified: src/desktop/Window.cpp * minor fixes modified: src/Compositor.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.hpp * properly clean layout data modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/IHyprLayout.cpp modified: src/layout/IHyprLayout.hpp modified: src/layout/MasterLayout.cpp * remove newline modified: src/events/Windows.cpp * fixes modified: src/config/ConfigManager.hpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp * use CamelCase modified: src/Compositor.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp modified: src/layout/IHyprLayout.cpp modified: src/managers/AnimationManager.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/XWaylandManager.cpp modified: src/render/OpenGL.cpp modified: src/render/Renderer.cpp modified: src/render/decorations/CHyprBorderDecoration.cpp modified: src/render/decorations/CHyprDropShadowDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp
* xwayland: break cyclic loop of parents (#6722)Tom Englund2024-07-011-2/+4
| | | | | in X11 some surfaces is a parent of itself and creates a cyclic loop when trying to find its parent. check for old parent and break if its beginning to roll over.
* core: Move to hyprutils for MathVaxry2024-06-191-5/+5
| | | | | | Moves CRegion, CBox and Vector2D over to hyprutils. Requires hyprutils>=0.1.4
* window: improve swallowing functionalityVaxry2024-06-151-0/+55
| | | | | | cleanups, fixes, etc. ref #6095
* core: move to hyprutils for utils (#6385)Vaxry2024-06-111-1/+4
| | | | | | | | | | | | | * 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-47/+43
| | | | | * wayland/core/dmabuf: move to new impl it's the final countdown
* input: add cursor:persistent_warps to maintain relative position within a ↵memchr2024-06-071-1/+12
| | | | | | | | | window (#6338) Allows the cursor to return to its last relative position within a window when the window is refocused. Allows the cursor to retain its relative position within a window when the window is swapped, moved, changed workspace, added to or removed from groups. controlled with cursor:persistent_warps
* window: avoid nullptr deref on monitor in box helpersVaxry2024-06-031-5/+7
| | | | fixes #6321
* renderer: fix xwayland solitary rechecks (#6295)shezdy2024-06-011-2/+2
|
* config: add tag dispacther and window rule (#6211)giskard2024-05-281-7/+19
|
* xwayland: move to hyprland impl (#6086)Vaxry2024-05-251-39/+125
|
* window: fix invalid env buffer size in getEnvvaxerski2024-05-241-1/+4
|
* window: guard monitor in bounding box calculationsvaxerski2024-05-221-5/+5
| | | | fixes #6190
* window: verify suppress flags in onUpdateStateVaxry2024-05-171-2/+2
| | | | ref #6108
* xdg-shell: move to new implVaxry2024-05-141-37/+169
|
* windowrules add focusonactivate (#5976)MightyPlaza2024-05-101-1/+5
| | | | | modified: src/config/ConfigManager.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp
* cursor: move to a hyprland implVaxry2024-05-091-1/+1
| | | | | | | This moves wlr_cursor to a completely new impl mostly under CPointerManager Also adds beginSimple to OpenGL for simple render passes (e.g. cursor)
* foreign-toplevel: bypass no activate focus checksVaxry2024-05-081-2/+2
| | | | | | ref #5939 those are used by focus switchers so they should bypass stuff like focus_on_activate = false
* window: avoid uaf on updateWindow decosVaxry2024-05-071-0/+2
| | | | | | TODO, make these pointers SP to avoid this in the future. fixes #5909
* ipc: add togglegroup, moveintogroup and moveoutofgroup events (#5866)VPavliashvili2024-05-071-0/+11
|
* 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.
* windows: set fullscreen border size to 0 (#5865)JManch2024-05-041-1/+1
|
* windowrules: Fix Floating Grouped Windows Crash and Bug. (#5826)Gabriel Ford2024-05-031-2/+2
| | | | | | | | | * Don't unhide grouped items. * Remove head check as that wasn't always correct. * Replace lock with expired() * Remove set hidden from max size.
* internal: store matched windowrules and emit eventVaxry2024-05-021-2/+4
| | | | new event for plugins, windowUpdateRules
* layout: Trigger layout recalcuation on deco position/size change (#5821)zakk42232024-05-011-6/+1
| | | | | | | * Trigger layout recalcuation on deco position/size change * Remove now unneeded code * Formatting
* xdg-activation: move to new implVaxry2024-04-291-1/+1
|
* internal: Window storage rework - part 1 (#5762)Vaxry2024-04-271-117/+127
| | | | | | | | | | | | | | | | | * Window storage rework - part 1 * format * remove useless include * fix pch * format * fix crash in dwindle * fix vram leak * prefer .expired() for bool checks
* wlr-foreign-toplevel: move to new implVaxry2024-04-251-58/+18
|
* tokens: add more modes to initial_workspace_trackingVaxry2024-04-241-2/+27
| | | | | | 1 is single-shot, 2 is persistent fixes #5732
* config: Add More Monitor 'Auto' Positions. (#5670)Gabriel Ford2024-04-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | * Reverse Window Positioning. * Cleanup old comments and logs. * Finish Splitting Left and Right offset. * Forgot to add Auto Left to ConfigManager * Fix problems with auto_left. * Nearly finish up and down. * Finish draft of all four dirs. Testing now. * Change Y value in moveTo for up and down. * Format, comment, and cleanup. * Address Vaxry's feedback. * Add check to see if auto position is first rule. * Run clang-format.
* windows: add misc:initial_workspace_trackingVaxry2024-04-231-0/+45
| | | | | | 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.
* Window: add destroy signalVaxry2024-04-211-0/+2
|
* tearing-control: hyprland impl (#5655)Vaxry2024-04-191-8/+0
| | | | | * tearing: hl impl * format
* windows: recalculate monitor after updating windows (#5647)Sungyoon Cho2024-04-191-1/+8
| | | | Recalculate monitor after updating windows, so layout render doesn't get overridden.
* window: remove input ref on unmapvaxerski2024-04-161-0/+2
| | | | ref #5605
* window: always unref workspace on unmapVaxry2024-04-121-1/+2
| | | | fixes #5563
* workspace: update windows when selector match could change (#5533)Sungyoon Cho2024-04-101-9/+27
| | | | | | | * workspace: update windows when group updates * workspace: update windows when floating toggle * workspace: update windows when stop dragging window by mouse
* config: Don't override fullscreen opacity if only two opacities are provided ↵SoSeDiK2024-04-091-8/+12
| | | | (#5512)
* workspace: Add count group flag in windowCount workspace selector prop (#5499)Sungyoon Cho2024-04-091-0/+1
| | | | | * Add groupCount workspace selector prop * Intergrate groupCount with windowCount
* props: Allow setting per-window fullscreen opacity (#5470)SoSeDiK2024-04-071-5/+12
|
* workspacerules: fix workspace rule loops (#5433)thejch2024-04-051-21/+8
|
* window: fix invalid last workspace idVaxry2024-04-041-1/+1
| | | | ref #5432
* Workspace/core: Refactor workspace storage (#5380)Vaxry2024-04-021-28/+36
| | | | | * refactor workspaces to use ptrs * clang-format
* renderer/animations: Fix various inaccurate damage tracking issues and ↵thejch2024-03-311-0/+38
| | | | offsets (#5297)
* core: match all workspace rules instead of the first one only (#5340)thejch2024-03-311-8/+21
|
* animvar: fixup update callbacks and cleanupVaxry2024-03-291-8/+8
|
* renderer: allow blurring ls popupsVaxry2024-03-251-0/+10
|