summaryrefslogtreecommitdiff
path: root/src/managers/XWaylandManager.cpp
Commit message (Collapse)AuthorAgeFilesLines
* animations: fix XWayland cursor glitch and refactor skill issues (#9033)Maximilian Seidler2025-01-111-1/+1
|
* core: move parts of the animation system to hyprutils (#8868)Maximilian Seidler2025-01-071-3/+3
| | | | | | | | | | | | | * core: change animation manager to use Hyprutils::Animation * config: move animation config to hyprutils animation tree * use g_pAnimationManager->createAnimation and the new PHLANIMVAR template * core: use CGenericAnimatedVariabled::{enabled,setConfig,getStyle} and adapt callbacks * core: adapt animated variable usage (dereference the shared pointer) * misc: bump CMakeLists to hyprutils 0.3.3
* core: avoid activating toplevel-less surfacesVaxry2024-12-181-1/+1
| | | | ref #8609
* xwayland: Support cross DnD from Wayland (#8708)Vaxry2024-12-151-0/+30
| | | Adds support for drag-and-drop from Wayland clients to XWayland ones
* windows/xdg: minor cleanup of min/max size calculationsVaxry2024-11-171-30/+0
| | | | fixes #8495
* core: move internal structures to monitor pointers (#8266)Vaxry2024-10-271-1/+1
|
* internal: Move CMonitor to SP (#8178)Vaxry2024-10-191-2/+2
| | | | | * move monitors to sp * XD
* xwayland: minor cleanups and fixes (#8076)Jasson2024-10-111-55/+55
|
* xwayland: remove extra x11 deactivation (#7755)trianta2024-09-121-4/+1
|
* window/xwayland: minor property cleanupVaxry2024-08-301-7/+4
| | | | fixes #6921
* misc: constify the remaining for loops (#7534)Tom Englund2024-08-261-1/+1
| | | now we roll loops at blazing constified speed.
* core: make most for loops use const references (#7527)Tom Englund2024-08-261-2/+2
| | | | why not let the compiler optimise things for us at hyprspeeds when we can.
* xwaylandmgr: minor refactor to activateSurfaceVaxry2024-08-261-19/+21
| | | | | | Make it more efficient now that we can + fix possible nullptr deref fixes #7514
* xwayland: deactivate xwayland focus if wayland is focused (#7458)trianta2024-08-251-1/+4
| | | | | * xwayland: deactivate xwayland focus if wayland is focused * xwayland: deactivate last xwayland surface after focusing wayland
* xwayland: fixup WM_SIZE_HINTS handling according to ICCCMVaxry2024-07-211-6/+14
|
* core: Improve handling of window properties (#6776)MightyPlaza2024-07-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* wayland/core: move to new impl (#6268)Vaxry2024-06-081-8/+5
| | | | | * wayland/core/dmabuf: move to new impl it's the final countdown
* xwayland: move to hyprland impl (#6086)Vaxry2024-05-251-89/+47
|
* xdg-shell: move to new implVaxry2024-05-141-88/+33
|
* core: cleanup environment on exit (#5941)Ikalco2024-05-081-1/+5
|
* internal: Window storage rework - part 1 (#5762)Vaxry2024-04-271-18/+18
| | | | | | | | | | | | | | | | | * 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-3/+0
|
* XDG-Output: move to hyprwayland-scannerVaxry2024-04-201-1/+0
|
* Workspace/core: Refactor workspace storage (#5380)Vaxry2024-04-021-1/+1
| | | | | * refactor workspaces to use ptrs * clang-format
* config: improve config value infrastructureVaxry2024-03-031-9/+10
|
* xwayland: disable initial focus for xwayland dialogs (#4936)Epilepsy Gatherings2024-03-031-3/+1
|
* drag: check min size for reisze dragsVaxry2024-03-021-0/+15
| | | | fixes #4920
* animations: Refactor AnimatedVariable (#4911)GartoxFR2024-03-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | * 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
* core: fix crashes on access of deleted wlr_ surfaceVaxry2024-02-291-0/+6
| | | | ref fixes #4893
* xwaylandmgr: don't read xwayland surface from unmapped xwaylandVaxry2024-02-291-2/+2
|
* xdg: check for floating conditions before sending tiled size hintVaxry2024-02-281-8/+8
| | | | ref #4871
* Migrate the config to hyprlang (#4656)Vaxry2024-02-181-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* xwaylandmgr: proper clamping for setWindowSizeVaxry2024-02-051-1/+1
| | | | closes #4622 fixes #4621
* xwaylandmgr: clamp size in setWindowSizeVaxry2024-02-051-0/+2
| | | | fixes #4586
* internal: nuke CWindow::m_bMappedX11Vaxry2023-12-171-1/+1
| | | | it's useless. m_bIsMapped is the same.
* xwaylandmgr: allow resizes without a monitorVaxry2023-12-171-8/+4
|
* Revert "xwayland: push invisible windows outside layout"Vaxry2023-12-131-3/+1
| | | | | | This reverts commit accb3d8d0b339ce83dd36704503253d874c7163b. Bad idea
* xwayland: push invisible windows outside layoutVaxry2023-12-121-1/+3
| | | | fixes some xwl focus issues with special especially.
* renderer: Move to a full Hyprland GL rendering pipeline (#3920)Vaxry2023-11-241-4/+6
| | | Also updates wlroots
* xdg: set state maximized for all tiled windowsVaxry2023-11-111-2/+5
| | | | forces them to not draw stupid decorations of their own. Wlroots stopped doing it for us. Fixes #3830
* xdg-shell: improve ack-configure handlingVaxry2023-11-101-2/+2
| | | | fixes #3807
* xdg-shell: update reported size on ack_configureVaxry2023-11-091-1/+1
|
* Internal: Hyprland box implementation (#3755)Vaxry2023-11-041-3/+5
| | | | | | | * box impl * remove unused operators * missed applyfromwlr
* surface/wayland: conform to small surface requirementsVaxry2023-10-201-2/+2
| | | | do not stretch small surfaces, instead center them if they fit.
* xwayland: adjust coord calculationvaxerski2023-09-101-1/+1
| | | | coord exactly at the corner would be calc'd wrong
* internal: Formatter rework (#3186)Vaxry2023-09-061-3/+3
|
* xwaylandmgr: find closest output in xwayland coord translationvaxerski2023-09-041-4/+9
| | | | partially off-screen windows would be snapped to 0,0 otherwise
* internal: Revert rounding of window size (#3153)staz2023-09-031-2/+2
| | | | | | | | | * Revert "renderer: round coords and size in renderWindow" This reverts commit fc0c1896e097b3c3b2170ae69d38724e43960fe1. * Revert "xwaylandmgr: round reported sizes" This reverts commit 2985e20e6a5868e710aa3bdaa2789a2023010611.
* xwaylandmgr: round reported sizesvaxerski2023-09-021-2/+2
| | | | Since we round the sizes in the renderer, it's also a good idea to round the sizes reported to the apps. Fixes #3138
* xwayland: fix incorrect VECINRECT usagevaxerski2023-08-181-1/+1
| | | | Fixes #3002. VECINRECT uses x2 and y2 and not w / h.