summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
Commit message (Collapse)AuthorAgeFilesLines
* input: unify removing currentlyDraggedWindow (#7071)MightyPlaza2024-07-271-0/+3
| | | | | | | | 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
* protocols: move screencopy and toplevel export to hyprwayland-scanner (#7065)Ikalco2024-07-271-1/+2
| | | | | * move screencopy and toplevel export to hyprwayland-scanner * oops
* window: drop ack requirement for applying pending reported sizeVaxry2024-07-231-6/+1
| | | | fixes #6533
* config: add option to exit window while retaining fullscreen (#516) (#6880)Khiet Tam Nguyen2024-07-151-1/+9
| | | | | * feat: saving fullscreen mode and state for restoring later * style: no p-prefix, capitalised constants
* window: override noMaximize if new window takes over fullscreen (#6812) (#6870)Khiet Tam Nguyen2024-07-131-2/+4
|
* core: Improve handling of window properties (#6776)MightyPlaza2024-07-111-15/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* core: add ability to select previous workspace per monitor (#6598)Alexander2024-06-221-2/+1
| | | Co-authored-by: Крылов Александр <aleksandr.krylov@hyperus.team>
* window: improve swallowing functionalityVaxry2024-06-151-62/+7
| | | | | | cleanups, fixes, etc. ref #6095
* window: use effective damage for tearing re-schedulesVaxry2024-06-141-1/+1
| | | | fixes #6377
* 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