dekstop/window: read static rules before guessing initial size if possible#12783
Conversation
dc75a51 to
a0faa6f
Compare
|
did you fix something else in your force push? |
|
no I just rebased |
|
I must be doing something wrong, as soon as I press any of my binds to open an app (even those which i don't open floating) hyprland crashes (segv) and I get sent into safe mode. from the safe mode environment it seems like when i have a bind to |
|
mamma mia you are correct |
|
couldnt repro the crash tho |
|
I'll try to rebuild with this, just as additional info, it must be my config running some specific codepaths because i was crashing when any windows were getting opened, no matter if it was by |
|
gdb stacktrace pls |
I'm happy to see there's a hyprland-debug nix package, I should be able to get a trace quicker than I anticipated thanks to the awesome wiki |
|
ah, actually nix build fails on this PR so that doesn't help immediately |
|
I can see the tester in CI is dying too but I cant repro here lole |
|
i'm getting this, seems to be simple to fix? i know basically nothing about cmake though |
|
Anyways, this is getting too far into 2026 for tonight (2am), so i'll try to get a proper debug build tomorrow |
|
I'm leaving for a new years get together soon too so I will check this out tomorrow if I am not too drunk from water and coca cola |
|
gdb stacktrace obtained |
|
looks like a tasty nullptr member access |
|
This fixes it for me diff --git a/src/desktop/rule/windowRule/WindowRule.cpp b/src/desktop/rule/windowRule/WindowRule.cpp
index d1994d2e..546680c1 100644
--- a/src/desktop/rule/windowRule/WindowRule.cpp
+++ b/src/desktop/rule/windowRule/WindowRule.cpp
@@ -93,6 +93,8 @@ bool CWindowRule::matches(PHLWINDOW w, bool allowEnvLookup) {
return false;
break;
case RULE_PROP_ON_WORKSPACE:
+ if (!w->m_workspace)
+ continue;
if (!engine->match(w->m_workspace))
return false;
break;to my understanding it was trying to check for also needed this to be able to build the diff --git a/nix/overlays.nix b/nix/overlays.nix
index fdb3e652..8e947796 100644
--- a/nix/overlays.nix
+++ b/nix/overlays.nix
@@ -86,7 +86,7 @@ in {
(final: prev: {
aquamarine = prev.aquamarine.override {debug = true;};
hyprutils = prev.hyprutils.override {debug = true;};
- hyprland-debug = prev.hyprland.override {debug = true;};
+ hyprland-debug = prev.hyprland.override {debug = true; withTests = true;};
})
];once again might not be the best way to fix this, i just went with the first thing that got it to build |
|
tha ks |
|
@fufexan can you |
|
@fxzzi @C0Florent is this fixed for you? |
So that I can have this fix PR hyprwm/Hyprland#12783


Ref #12753