summaryrefslogtreecommitdiff
path: root/src/events/Monitors.cpp
Commit message (Collapse)AuthorAgeFilesLines
* monitor: modernize/refactor last legacy-handled eventsVaxry2024-10-191-105/+0
|
* monitor: avoid dangling references to old monitors being undestroyedvaxerski2024-08-191-25/+0
| | | | ref #7414
* monitors: avoid crash on wayland output removalvaxerski2024-08-191-1/+1
|
* protocols: move screencopy and toplevel export to hyprwayland-scanner (#7065)Ikalco2024-07-271-2/+4
| | | | | * move screencopy and toplevel export to hyprwayland-scanner * oops
* Core: Move to aquamarine (#6608)Vaxry2024-07-211-127/+8
| | | | | | | | | | | | | | 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>
* core: move to steady_clock where applicableVaxry2024-06-251-2/+2
| | | | avoid issues when system clock gets desynchronized or changed
* core: fix a few small memory leaks on exit (#6470)Tom Englund2024-06-131-0/+3
| | | | | | | | | | | | | | | | | | | | * renderer: add destructor and destroy event source add destructor and destroy the event source. one less leak on exit of compositor reported by asan. * compositor: cleanup eventloop on exit destruct hyprctl to release the event sources, and properly cleanup the event loop on exit of compositor. less leaks on exit reported by asan * threadmgr: destroy event source on destruction destroy the event source on destruction. * eventloopmgr: reset eventloopmgr on exit aswell reset the eventloopmanager on exit of compositor and free the leaking last idle frame on monitor destroy.
* config: move various cursor-related vars to cursor:Vaxry2024-05-091-1/+1
|
* cursor: move to a hyprland implVaxry2024-05-091-12/+11
| | | | | | | This moves wlr_cursor to a completely new impl mostly under CPointerManager Also adds beginSimple to OpenGL for simple render passes (e.g. cursor)
* internal: new shared_ptr and weak_ptr implementation (#5883)Vaxry2024-05-051-4/+4
| | | | | | | | | | | 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.
* output-management: move to new implVaxry2024-05-031-44/+0
|
* config: added option to choose the default monitor for the cursor (#5847)Ikalco2024-05-031-14/+41
| | | | | | | * added option to choose the default monitor that the cursor will appear in upon startup * fix: don't set cursor to default monitor after startup * refactor to checkDefaultCursorWarp also fix focus
* internal: Window storage rework - part 1 (#5762)Vaxry2024-04-271-1/+1
| | | | | | | | | | | | | | | | | * Window storage rework - part 1 * format * remove useless include * fix pch * format * fix crash in dwindle * fix vram leak * prefer .expired() for bool checks
* keybinds: Fix exit trigger by moving it to monitor.frame (#5240)dmayle2024-03-251-0/+7
|
* config: improve config value infrastructureVaxry2024-03-031-5/+6
|
* Migrate the config to hyprlang (#4656)Vaxry2024-02-181-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* renderer: accept custom state requests for fake outputsVaxry2024-02-141-3/+13
|
* monitor: wrap usage of wlr_output_stateVaxry2024-01-281-3/+3
| | | | | | for better control and convenience in usage. fixes #4546
* subsurfaceTree: update surface tree protocol feedback on mapvaxerski2024-01-091-1/+1
|
* output-layout: fix wlroots display handling (#3718)Alessio Molinari2023-11-121-2/+5
|
* Internal: Hyprland box implementation (#3755)Vaxry2023-11-041-2/+3
| | | | | | | * box impl * remove unused operators * missed applyfromwlr
* Core: various unsafe state improvements (#3713)Vaxry2023-11-011-38/+16
| | | Fixes #3637
* deps: update wlrootsVaxry2023-10-251-1/+1
|
* renderer: extract solitary check into frame handlervaxerski2023-10-041-1/+3
|
* renderer: considerable fixes to repaint logicvaxerski2023-10-041-1/+2
|
* tearing: cleanup vars and avoid rendering before drm is readyvaxerski2023-09-301-8/+9
|
* renderer: optimize render pipeline when there is a solitary clientvaxerski2023-09-291-1/+0
|
* renderer: Tearing implementation (#3441)Vaxry2023-09-281-0/+10
|
* internal: Further unsafe state improvements (#3404)Vaxry2023-09-241-6/+18
| | | Instead of allowing Hyprland to sit in a state where there are no monitors, which various parts of the code don't like, we create a fake headless output on all monitor disconnect, and then remove it when a monitor appears
* refactor: utilize 'middle()' method for window/montior center (#3253)memchr2023-09-111-2/+2
|
* internal: Fix wlr output management (#3234)Philip Damianik2023-09-101-2/+12
|
* internal: Remove all `.c_str()` calls when using `std::vformat` (#3198)Philip Damianik2023-09-061-1/+1
| | | Signed-off-by: pdamianik <39028343+pdamianik@users.noreply.github.com>
* internal: Formatter rework (#3186)Vaxry2023-09-061-2/+2
|
* internal: Unsafe state reworks (#3114)Vaxry2023-09-011-20/+19
|
* toplevelexport: support dmabuf + various fixesvaxerski2023-07-201-1/+3
|
* internal: Protocol C++ Wraps + XDGOutput impl (#2733)Vaxry2023-07-181-4/+1
| | | move to our own xdgoutput impl instead of wlr's
* screencopy: don't send frames on commits w/o a buffervaxerski2023-07-121-1/+2
|
* Reuse same ID when reconnecting monitor, otherwise use minimum available ID ↵Tuur Vanhoutte2023-07-091-1/+1
| | | | | (#2666) Fixes #2601
* xwayland: send zero scaling to xwayland if enabledvaxerski2023-06-231-1/+8
|
* Partial revert of Commit 302ec13: (#2539)Shemig2023-06-171-5/+0
| | | | | | | | | | | | | | Fix crash when screen size is 0x0 (#2523) Reason: The disable of a monitor with 0x0 size is causing issuses with some users. https://github.com/hyprwm/Hyprland/issues/2537 Left the defensive code to resolve the crash. Will continue to investigate and find a solution for the dell xps disabled monitor Co-authored-by: giladsx <gilad@spectalix.com>
* Fix crash when screen size is 0x0 (#2523)Shemig2023-06-151-0/+5
| | | | | | (When booting into laptop clam mode in dell XPS) and also ignore any screen with size 0x0 in the first place Co-authored-by: giladsx <gilad@spectalix.com>
* events: remove old commentvaxerski2023-06-021-1/+0
|
* screencopy: implement dmabufvaxerski2023-04-121-0/+8
|
* listeners: more safety around changevaxerski2023-04-121-0/+3
|
* output: handle needs_framevaxerski2023-04-071-0/+6
|
* internal: listen to output.damage eventsvaxerski2023-04-071-0/+7
|
* Fix some typos (#1907)Alexander Seiler2023-03-291-1/+1
| | | Signed-off-by: Alexander Seiler <seileralex@gmail.com>
* config: default manual animations to falsevaxerski2023-03-241-1/+1
|
* Feat: Introduce render_ahead_of_time (#1863)Vaxry2023-03-241-206/+19
|
* Added overflow check for blur radius (#1847)staz2023-03-211-1/+2
| | | | | | | * internal: added overflow check for blur radius --------- Co-authored-by: vaxerski <43317083+vaxerski@users.noreply.github.com>