Open tobias-haenel opened 2 months ago
Thanks for reporting. Does this only happen with Chromium? (and does it happen every time?)
I'm also on 46.3.1
with an arch-based distro - will try to reproduce.
Can you please paste a screenshot of your border / margin settings so I try to reproduce your settings?, e.g. paste something like:
Any window size / restore extensions you use on Chromium?
Cheers.
Haven't been able to reproduce with Chromium 1278.0.6533.57 as yet, but will try a few things there.
Most likely some corner case with border/margin size settings I'm guessing. Anyways, zap me those settings when you can we can attempt to reproduce/isolate.
I am using Chromium Version 127.0.6533.57 (Official Build) Arch Linux (64-bit). No window size/restore extensions.
If I mouse click on the window it returns to its supposed size as well.
Thanks for your efforts!
I am getting this error even when I use your settings for border|margins|gaps. Sometimes this bug occurs only when I open a second/third chromium window through my short cut.
I am getting this error even when I use your settings for border|margins|gaps. Sometimes this bug occurs only when I open a second/third chromium window through my short cut.
Hmm - must be something else impacting this then. Your extensions looks okay, but just to be sure, can you disable all extensions (except PaperWM), logout / login, and see if you can reproduce?
Long shot, but do you have any styling on the alt-tab popup? Reason being, is that the selected window border shares the styling class with the alt-tab element. Given that picture though, it doesn't seem like it's a styling issue (more a window placement issue).
Finally, what resolution / scaling are you running on your monitor?
P.S. I also use a shortcut for my browser(s), and haven't been able to reproduce it yet with a custom shortcut with Chromium.
Actually, your settings window looks strange/different/non-standard (small icons and heavily rounded corners)... is that custom styling or from an extension?
Screen resolution is 2560 x 1440. Scale is 100%. I am using the Orchis GTK4-Theme (https://github.com/vinceliuice/Orchis-theme) that results in a different look for the settings window. The bug occurs with all extensions disabled except for PaperWM and also if I use the standard GTK4 Theme.
Hmm - haven't seen this and haven't been able to reproduce as yet. Let's see if anyone else has seen this ever.
@Lythenas @valpackett @Thesola10 - anyone seen this?
Any chance you can take a video / screen video capture? - maybe that would help in seeing how it offsets.
Here's me creating chromium windows (lots of them) with the Gnome custom shortcut super
+w
. Let me know if I'm doing anything wrong / different from you in trying to reproduce.
Screencast from 2024-07-23 23-30-42.webm
I have a very similar setup as you (EndeavourOS, 2560x1440 monitor, same gnome version and same PaperWM version).
No problem.
I'm also not able to reproduce unfortunately. But I've seen something kind of similar back in Gnome 44 when adding some programs in the autostart. The offset was different (to the side instead of making the window smaller) and it was firefox and not chromium. Although I didn't try chomium. So I'm unsure if this is even related.
I'm also not able to reproduce unfortunately. But I've seen something kind of similar back in Gnome 44 when adding some programs in the autostart. The offset was different (to the side instead of making the window smaller) and it was firefox and not chromium. Although I didn't try chomium. So I'm unsure if this is even related.
Thanks @Lythenas - that was the autostart issue (window starting before PaperWM does) - not sure if that's related (it could be though).
@tobias-haenel, I've removed the tile-preview
css class from paperwm-selection
in this branch: https://github.com/paperwm/PaperWM/tree/debug-905-chromium-position-selection-offset.
Just want to rule the styling out here, given that when that issue occurrs, the selection border is very larger.
When you've got some time, can you checkout this branch and logout/login and test?
Uninstall current PaperWM extension (you won't lose your settings or anything), and then do a:
git clone https://github.com/paperwm/PaperWM.git
cd PaperWM
git checkout debug-905-chromium-position-selection-offset
./install.sh
Logout / login (this is important) and then re-test.
Also, can you paste your ~/.config/paperwm/user.css
file here (if you've changed / edited PaperWM css styles)?
Cheers.
The change did not fix the issue and the background styling is missing (due to the title-preview missing css class?)
I also tried v46.13.0 and v46.12.0 the issue persists even with those earlier versions.
The change did not fix the issue and the background styling is missing (due to the title-preview missing css class?)
Thanks for testing - I was checking that specifically - so there's definitely something up with the styles (and in particular the tile-preview
class, and maybe other standard gnome styling) on your setup. When I run this branch the selection is still there fine (and it should be). Nope! you're right (I was running my user.css
styles to add border color).
I notice you are running user-theme@gnome-shell-extensions.gcampax.github.com extension - what user styles are you using?
In any case, this seems very to be as styling clash with some things you are running - which is specific to your setup/env. Haven't seen/heard of this before (even after all some years on PaperWM).
Are you able to create a clean / new user and just install PaperWM and retest?
The issue doesn't occur with Chromium 126.0.6478.182-1 only with 127.0.6533.72-1
The issue doesn't occur with Chromium 126.0.6478.182-1 only with 127.0.6533.72-1
oh...
Okay, I looked - I'm running 127.0.6533.57
are you using Xorg or Wayland?
Wayland.
How did you install 127.0.6533.72-1, on Endeavour (which I though used arch repos), it looks like 127.0.6533.57-1 is the current version. Are you on Arch test repos?
actually, you're right https://archlinux.org/packages/extra/x86_64/chromium/
ah, hadn't updated...
okay, just updating - which will install 127.0.6533.72-1... well, at least I'll be able to reproduce...
Don't get your hope up, 127.0.6533.57 didn't work as well.
ah - interesting. Is behaving fine. Definitely create a new/clean user account on your machine and test as that branch should have shown the selection border if the PaperWM styles were working correctly.
Looks like the latest version doesn't have any issues on my current setup (I also tested on fedora 39 and 40).
Unfortunately, so far, it looks like an issue specific to your env (and probably something to do with custom/user styles?).
Unfortunately, unless I can reproduce, there's little chance for isolating and looking at it further for a resolution.
I'll leave this issue open, in case someone else has a similar styling setup and can shed some light on this further.
Thanks for testing - I was checking that specifically - so there's definitely something up with the styles (and in particular the
tile-preview
class, and maybe other standard gnome styling) on your setup. When I run this branch the selection is still there fine (and it should be).
And... scrap that! You're right (I was running my custom border stuff). Indeed that branch does hide the styling border...
Apologies for the confusion there.
Where does paperwm store its configuration? I would like to try reset my config to default.
dconf
https://github.com/paperwm/PaperWM?tab=readme-ov-file#user-configuration--development
Install dconf-editor
and then run
GSETTINGS_SCHEMA_DIR=::$HOME/.local/share/gnome-shell/extensions/paperwm@paperwm.github.com/schemas dconf-editor /org/gnome/shell/extensions/paperwm/ &>/dev/null
I doubt that will change / fix it though. If you create a new user account (then can delete it afterwards) and login with Gnome, then install PaperWM etc. - that would let us know (since you have a clean env and all clean paperwm settings/styles etc.).
also, I reverted that change (removing tile-preview
class) - it really only sets the colour anyway:
On the branch you're currently on - just do a git pull
(which will get you back to release state).
I tried to create a new user and everything worked correctly. I am trying to figure out the difference between my user account and the test user
I tried to create a new user and everything worked correctly. I am trying to figure out the difference between my user account and the test user
Gotcha. My money is still on styling or themes (but am just guessing from gut feel). In dconf-editor, you can reset-recursively
which will reset all PaperWM settings to default (you'll def need to logout/login or disable/enable PaperWM after doing that):
The issue occurs even with a new user, no styling (gnome defaults) and only paperwm. I forgot to add the winprop wmclass "*" 50% width rule. The issue doesn't occur if I don't have that rule. I am using the following ~/config/chromium-flags.conf
--enable-features=TouchpadOverscrollHistoryNavigation
--ozone-platform=wayland
nice find. So, I also have always had a default 50% rule:
I'll try your flags. Tell me, does it also occur if you don't have those flags (e.g. no chromium-flags.conf ?).
Dang, with those flags my chromium doesn't even start up
Nvidia user? (if so, running hybrid or discrete?)
Nvidia Hybrid (GeForce RTX 4070 Max-Q / Mobile and Iris Xe Graphics)
It seems to work without the flags. The first window is created slower than its overlay. But then chromium will use XWayland.
ah.. nice laptop. Somewhat similar to mine. I'm running nvidia 555.58.02 drivers.
You on Nvidia drivers or nouveau?
Okay, well, definitely made some progress here. With the ozone setting my chromium doesn't even start.
Well, we're definitely narrowing it down for sure. Thanks for sticking around to try isolate this one.
You could try --ozone-platform-hint=auto instead you can check with xeyes wheter an application is running under Wayland or XWayland. See https://wiki.archlinux.org/title/Chromium#Native_Wayland_support for details.
huzzah! I can finally reproduce. Had to run in full discrete mode but then the ozone flag worked.
Yes, chromium seems to be resizing itself (weirdly) on startup (and after PaperWM has run it's tiling layout).
Got a reproducible case now at least. I'll play around a bit more with this one tomorrow.
Nice, thanks for sticking around!
Just putting some notes / resources here for reference:
Under wayland (not xwayland), chromium throws the Invalid window geometry for xdg_surface@38. Ignoring for now, but this will result in client termination in the future.
warning.
This error messages seems to be thrown, when the initial window width or height is 0. https://gitlab.gnome.org/GNOME/mutter/-/blob/main/src/wayland/meta-wayland-xdg-shell.c#L1867
Adding --window-size="300,500"
to .config/chromium-flags.conf
is a workaround. The message dissappears and PaperWM doesn't have the offset issue. So the issue seems to occur for windows with an invalid initial size?
Yes, unfortunately the issue occurs in mutter (which is not something we control) and before paperwm receives and can do much about that particular issue (unless of course we modify and compile our own version of mutter to do something like change those geometries? etc).
Definitely an upstream Chromium issue that looks like it was intro'd in the last few versions. That exception for mutter suggests that sometime in the future mutter will be terminating such misbehaved applications. Suggest submitting this issue upstream to chromium (can reference this issue here).
For us though, workarounds will likely be the best bet here (using xwayland, or modifying window-size property).
Describe the bug When I open chromium through a custom shortcut the new window position is somehow offset to the bottom right of the screen. I have a winprop for wmclass "*" with prefered width 50% After cycle through my different width presets, the window position is correct.
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
System information: Distribution: Arch Linux GNOME Shell: 46.3.1 Display server: Wayland PaperWM version: 46.13.5 Enabled extensions: