raboof / notion

Tiling tabbed window manager
https://notionwm.net/
GNU Lesser General Public License v2.1
268 stars 63 forks source link

Chrome windows don't refresh when tabbed into focus #314

Closed drheld closed 3 years ago

drheld commented 3 years ago

With notion 4.0.1, switching tabs from one Chrome window to another doesn't redraw the screen. I'm not sure exactly what it is, but it's deterministic. One such affected site is https://drheld.github.io/nyc_covid19/?zip=11217 .

Downgrading to notion 3.2 fixes the issue. With 4.0.1 it reliably reproduces.

raboof commented 3 years ago

switching tabs from one Chrome window to another

I'm not sure I understand the scenario you're describing? Does the problem also occur with chromium?

drheld commented 3 years ago

Sorry for being unclear. I should have documented it while it was reproducing. Here's a simple setup.

1) Create a desktop with 1 frame with 2 notion tabs. Have a Chrome tab in each. 2) In one notion tab have a Chrome window at at something like google.com, in the other notion tab have a Chrome window at https://drheld.github.io/nyc_covid19/?zip=11217 i) Note: Some sites consistently demonstrate the problem, while others consistently don't. Google does not. More graphical ones seem to including above mentioned link. 3) Switch notion tabs from the graphical one to the non-graphical one and back. 4) The notion tab content remains the same (ie: google.com) instead of redrawing the graphs.

Is that more clear?

buhl commented 3 years ago

Is this only related to chrome? I tried chromium on ubuntu and I have no issues. What notion style are you using? I am on 4.0.2-2-g8e785c34

drheld commented 3 years ago

I've only seen the issue in Chrome. I'm not sure what you mean by style exactly, but this is old lua files upgraded from ion.

buhl commented 3 years ago

@drheld Could you try to start notion with the standard config?

I have seen issues like you describe when having transparent background enabled.

drheld commented 3 years ago

After doing experiments and rolling back to Notion 3.2, it turns out it does not fix the issue afterall. Given that, it sounds like the actual issue is likely an interaction of a new Chrome version and Notion (both old and new versions).

wilhelmy commented 3 years ago

You could start from the last known good packaged chromium release and sort of bisect from there by installing different Chromium releases... sounds a little tedious. Then we could compare the diff between the first broken release and the last known good one and perhaps see which Xlib functions it calls differently (might be more involved, browsers are complicated after all). Doesn't seem like any of us others can reproduce this. fwiw, I'm running Chromium 88.0.4324.150 (openSUSE Build) (64-bit) Might also be a Chrome vs Chromium issue since apparently we're all trying with Chromium while you said Chrome. Did you try moving your config out of the way and using the default config like @buhl suggested? By style he means look, so which one of these look_*.lua you have enabled in your config. Can you reproduce it on any other machine?

buhl commented 3 years ago

What version of Chrome do you see the problem with? And have you tried starting notion with the default config?

drheld commented 3 years ago

Got confirmation that this is indeed a Chrome bug. Sorry about the bother (filed here when it looked downgrading Notion had fixed it).

drheld commented 3 years ago

https://chromium-review.googlesource.com/c/chromium/src/+/2724872

raboof commented 3 years ago

Sorry about the bother

No problem at all! I think it's totally fine to open tickets here when it's not clear yet where the problem is exactly. Hopefully this gets resolved soon!