summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
Commit message (Collapse)AuthorAgeFilesLines
* events: make new windows taking over fullscreen keep the existing mode (#3588)eriedaberrie2023-10-171-0/+2
|
* cleanup: Replace find() with C++20 starts_with(), ends_with() and contains() ↵Philip Damianik2023-10-151-21/+21
| | | | | | | (#3572) * Replace find() with C++20 starts_with() and ends_with() * Replace find() with C++20 contains()
* events: fixup empty events not being sent on unmapvaxerski2023-10-061-1/+7
| | | | Ref #3506 https://github.com/hyprwm/Hyprland/issues/3506#issuecomment-1749508111
* layout: add new_window_takes_over_fullscreen mode 2vaxerski2023-10-041-0/+2
| | | | fixes #3486
* misc: add misc:new_window_takes_over_fullscreenvaxerski2023-10-021-2/+7
| | | | referenced in #3474
* events: set new window alpha to 0 if it's tiled behind fullscreenvaxerski2023-10-021-0/+3
| | | | fixes #3474
* events: don't focus new window if spawned behind fullscreenvaxerski2023-10-021-0/+2
| | | | fixes #3473
* layout: don't discard fullscreen on new tilingvaxerski2023-09-281-11/+0
|
* windowrules: add rule `group` to map windows grouped (#3279)memchr2023-09-221-0/+47
| | | | | * windows: add rule group to map windows grouped * group rule: use `invade` to force open a window in a locked group
* keybinds: implement pushactivetobottom dispacher (#3217)alaricljs2023-09-211-5/+5
| | | Co-authored-by: Leeman <lstrout@enlj.com>
* logging: implement std::formatter for some types (#3380)memchr2023-09-201-24/+22
|
* logging/format: use std::format_string to catch formatting string errors at ↵memchr2023-09-201-8/+8
| | | | | | | compile time (#3377) * fix(log): use constexpr format string * deprecate getFormat
* window: recalculate layout on swallow in mapvaxerski2023-09-161-0/+2
| | | | fixes #2848
* windowrules: fix workspace exec rule with special (#3316)MightyPlaza2023-09-151-2/+2
| | | modified: src/events/Windows.cpp
* windowrules: fix workspace rule separationvaxerski2023-09-121-8/+8
| | | | fixes #3265
* windowrules: add on-screen constraint to wrv2 'move' (#3247)alaricljs2023-09-121-4/+17
| | | | | | | | | | | | | * add on-screen constraint to wrv2 'move' * review changes * std::clamp * more parens --------- Co-authored-by: Leeman <lstrout@enlj.com>
* refactor: utilize 'middle()' method for window/montior center (#3253)memchr2023-09-111-5/+3
|
* internal: Remove all `.c_str()` calls when using `std::vformat` (#3198)Philip Damianik2023-09-061-14/+14
| | | Signed-off-by: pdamianik <39028343+pdamianik@users.noreply.github.com>
* internal: Formatter rework (#3186)Vaxry2023-09-061-43/+43
|
* windowrules: Monitor rule fix (#3157)MightyPlaza2023-09-031-1/+4
| | | | | | | * fix monitor rules modified: src/events/Windows.cpp * exec on workspace as silent when special is open modified: src/events/Windows.cpp
* internal: workspace rule handling refactor (#3116)MightyPlaza2023-09-021-59/+19
| | | modified: src/events/Windows.cpp
* wlr-ext-workspace: remove protocol implvaxerski2023-09-011-5/+0
| | | | Various reasons: 1st, memory issues. 2nd, MR got closed (see https://gitlab.freedesktop.org/wlroots/wlr-protocols/-/merge_requests/35) 3rd, not needed anymore (waybar has its own hyprland/workspaces module)
* internal: allow opening empty special workspacesvaxerski2023-08-251-2/+4
| | | | Fixes point 2 of #2596
* xwayland: use logical pos in unmanaged geom requestsvaxerski2023-08-211-5/+7
| | | | using raw xwayland coords is wrong cuz we use separate coord spaces
* renderer: Border improvements (#2986)MightyPlaza2023-08-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * simplify getting border size modified: src/Window.cpp modified: src/Window.hpp modified: src/layout/DwindleLayout.cpp modified: src/layout/MasterLayout.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * fix border damage and input box modified: src/Window.cpp modified: src/managers/AnimationManager.cpp * add border size in resize_on_border box modified: src/managers/input/InputManager.cpp * simplify border (fixes possible typo) modified: src/Window.cpp * use updateSpecialRenderData() modified: Window.cpp modified: Window.hpp modified: events/Windows.cpp modified: layout/DwindleLayout.cpp modified: layout/IHyprLayout.cpp modified: layout/MasterLayout.cpp modified: render/Renderer.cpp * update window workspace rule data on reload modified: src/config/ConfigManager.cpp * use rounding() modified: src/Window.cpp
* xwayland: fix use of xwayland coords in native spacesvaxerski2023-08-151-3/+5
|
* rules: center window improvements (#2935)MightyPlaza2023-08-111-2/+7
| | | | | | | | | | | | | * center window improvements modified: src/config/ConfigManager.cpp modified: src/events/Windows.cpp modified: src/managers/KeybindManager.cpp * remove redundant line modified: src/events/Windows.cpp * simplify code modified: src/events/Windows.cpp modified: src/managers/KeybindManager.cpp
* renderer: remember extents before removing a window and use them for dtvaxerski2023-08-091-9/+7
| | | | fixes #2351
* windowrules: implements nomaximizerequest (#2785)MightyPlaza2023-07-231-4/+13
| | | | | | | | | * Window.hpp * ConfigManager.cpp * Windows.cpp * fix maximize event
* typo (#2643)MightyPlaza2023-07-041-1/+1
|
* rules: add stayfocusedvaxerski2023-07-041-1/+5
|
* xwayland: fix minor force_zero_scaling bugsvaxerski2023-06-221-0/+17
|
* xwayland: add force_zero_scalingvaxerski2023-06-111-1/+2
|
* xwayland: disconnect events on destroyvaxerski2023-06-051-0/+2
| | | | thanks Kirill Primak
* deps: update wlrootsvaxerski2023-06-031-4/+17
|
* feat: add ipc set title window event (#2419)Cyril Levis2023-06-031-0/+2
| | | | | * feat: add ipc set title window event * chore: add EMIT_HOOK_EVENT and change event name
* rules: add nodimvaxerski2023-05-311-1/+1
|
* xdgshell: check and conform to rigid float sizes on commitvaxerski2023-05-261-1/+20
|
* layouts: ignore direction forces on non-mapvaxerski2023-05-241-0/+3
|
* input: don't refocus on closed windowvaxerski2023-05-141-2/+2
|
* rules: fix monitor rule with namesvaxerski2023-05-031-1/+1
|
* windows: check for fullscreen after rulesvaxerski2023-04-301-8/+7
|
* rules: add noinitialfocusvaxerski2023-04-281-0/+2
|
* Fix apps requesting fullscreen (#2099)q234rty2023-04-191-1/+1
| | | Otherwise e446db02f69ba7f3b3eea42a25f5de2c333bf0cd breaks fullscreening of image previews for nheko/telegram-desktop/...
* Add windowrule fakeFullScreen (#2043)DB2023-04-181-8/+15
| | | Co-authored-by: xVermillionx <xVermillionx@notvalid>
* Format: use %lx for all addressesvaxerski2023-04-171-29/+29
|
* swallow: fix invalid regexes with empty valsvaxerski2023-04-151-4/+10
|
* swallow: Add swallow_exception_regex (#2026)Kajetan Puchalski2023-04-121-7/+10
| | | | | | | | | | | | | | | | | Currently, if a window class is specified in the swallow_regex (e.g. Kitty) it will swallow every other window spawned by it automatically. Many other WMs implementing this functionality allow for defining exceptions from this rule. For instance, we want Kitty to swallow sxiv or zathura but we do not want Kitty to swallow something like wev. This commit adds an additional regex - swallow_exception_regex where these exceptions can be defined. This regex is then compared against the title of the window about to be swallowed and if it happens to be a match, aborts the swallowing. This works because whenever an application that could be swallowed is launched by a terminal, the class of the terminal remains the same while the title changes to whatever the application's name is, thus letting it be matched against a regex.
* internal: release buttons on unmapvaxerski2023-04-071-0/+2
|
* Feat: add initial class/title to hyprctl clientsvaxerski2023-04-031-0/+3
|