hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
19.41k stars 811 forks source link

New bugs #559

Closed TAforever closed 1 year ago

TAforever commented 2 years ago

I continue to actively test and here's what I found:

  1. The program easyeffects in tiling mode draws drop-down menus with artifacts, in floating mode everything is fine.
  2. In programs with their own cursor (retroarch) and games, a conflict of cursors occurs and either two cursors are drawn, system and game, or they are replaced alternately.
  3. Also in the game starcraft remastered (proton xwayland), it happens that the true position of the cursor does not correspond to where it is drawn and, accordingly, it will not be possible to capture the controls, but after a while it passes.
vaxerski commented 2 years ago

The program easyeffects in tiling mode draws drop-down menus with artifacts, in floating mode everything is fine.

Oh shiet this is a regression, could you tell me when that started?

In programs with their own cursor (retroarch) and games, a conflict of cursors occurs and either two cursors are drawn, system and game, or they are replaced alternately.

Video pls?

Also in the game starcraft remastered (proton xwayland), it happens that the true position of the cursor does not correspond to where it is drawn and, accordingly, it will not be possible to capture the controls, but after a while it passes.

Try running it through gamescope

TAforever commented 2 years ago

idk I just recently started using Hyprland

TAforever commented 2 years ago

about the video, apparently there is some kind of bug in wf-recorder, I can watch it, but I can’t play it on reddit and github

vaxerski commented 2 years ago

about the video, apparently there is some kind of bug in wf-recorder, I can watch it, but I can’t play it on reddit and github

why not use OBS? also, you can reencode it with ffmpeg, it's prolly some odd format

TAforever commented 2 years ago

gamescope I will try.

TAforever commented 2 years ago

ok., i will try with OBS.

vaxerski commented 2 years ago

number 1 fixed in ebe07c66567eae0f564288296f7d2f0f6b92e1f8

TAforever commented 2 years ago

here are 2 screenshots. if easyeffects is in tiling mode, then drop-down windows are drawn incorrectly, and if in fullscreen, then it's fine. screen-1661111489 screen-1661111483

vaxerski commented 2 years ago

image

dunno looks fine to me

TAforever commented 2 years ago

It’s also normal for me if it’s fullscreen, and if it’s just tiling, then it’s like in the screenshots.

TAforever commented 2 years ago

double cursor

https://user-images.githubusercontent.com/52626363/185808859-df88f69f-c257-46d2-b5ff-0b64d5c14b38.mp4

vaxerski commented 2 years ago

I only see one tho.

At any rate, it seems like an app bug rather than Hyprland.

Does it work in sway or wayfire?

TAforever commented 2 years ago

only for some reason upside down and there is no second cursor on the record

TAforever commented 2 years ago

easyeffects first tiling, then fullscreen. 2022-08-21.23-09-17.mp4

wtf upside down again

TAforever commented 2 years ago

long story short, tomorrow I'll figure it all out and post normal screen recordings.

TAforever commented 2 years ago

Tested in sway and sway-git and did not find these problems, the ball is on the side of Hyprland

TAforever commented 2 years ago

In fullscreen, without artifacts, but not captured by the cursor, in tiling, it is captured by the cursor, but not correctly drawn.

https://user-images.githubusercontent.com/52626363/185811687-d6f9dc7d-4dd9-4e30-8c0d-358fb7cf1f34.mp4

TAforever commented 2 years ago

https://user-images.githubusercontent.com/52626363/185811700-aeec6915-4b29-487f-8048-5beadc11657f.mp4

TAforever commented 2 years ago

https://user-images.githubusercontent.com/52626363/185811705-780965f3-8eb7-4498-9786-cf231ace6b2b.mp4

vaxerski commented 2 years ago

for the double cursor - do you possibly use the cursor timeout option? Maybe that's the root of the bug.

Starcraft - no clue, try gamescope

Easyeffects - will see tomorrow.

TAforever commented 2 years ago

Yes, you are right, the problem was in the timeout. Problem number two is solved.

frigaut commented 2 years ago

For me the easyeffect issue is not solved (I have updated 3 hours ago, at f273ebed9cab738b2f6000a73df7fad08a279c15).

Tiled: image

Floating: image

Sorry for the second screen included in the screendump...

frigaut commented 2 years ago

Same stuff for gnome-control-center:

Tiled: image

Floating: image

frigaut commented 2 years ago

Also, somehow, my org.gnome apps now open full screen, even though I do not have a single fullscreen rule in my hyprland config. This did not happen a week ago or so.

vaxerski commented 2 years ago

Also, somehow, my org.gnome apps now open full screen, even though I do not have a single fullscreen rule in my hyprland config. This did not happen a week ago or so.

That's a result of me trying to fix Qt incorrectly using the protocol, probably.

vaxerski commented 2 years ago

fixed the fullscreen issue

vaxerski commented 2 years ago

still, can't repro the easyeffects issue: image

vaxerski commented 2 years ago

@frigaut is this a regression? in that case a git bisect would be cool.

frigaut commented 2 years ago

Also, somehow, my org.gnome apps now open full screen, even though I do not have a single fullscreen rule in my hyprland config. This did not happen a week ago or so.

fixed the fullscreen issue

yes you did (at 21bea0fcb4401ea8588ea72cf51d75a8d2b85114).

frigaut commented 2 years ago

I'll try a bisect for the other issue.

frigaut commented 2 years ago

@vaxerski I've gone back to early august and this "streched" bug for gnome-control-center or easyeffects (gtk4?) apps is still there. In fact I am absolutely not sure this ever worked. I am used to open these particular apps in floating mode where the bug doesn't happen.

I have attached my env in case it helps (you don't have this issue do you?). sasaigo_env.txt

$ hyprctl version
Hyprland, built from branch main at commit 21bea0fcb4401ea8588ea72cf51d75a8d2b85114dirty (typo).
flags: (if any)
vaxerski commented 2 years ago

try unsetting GTK_THEME

frigaut commented 2 years ago

oohhh interesting. I had recently de-install gnome (the arch meta package). If I re-install it, this solves the issue...

frigaut commented 2 years ago

I did unset it and it did not change anything.

vaxerski commented 2 years ago

I had recently de-install gnome (the arch meta package)

what package?

frigaut commented 2 years ago

the meta package

sudo pacman -S gnome
frigaut commented 2 years ago
Packages (108) abseil-cpp-20220623.0-1  apache-2.4.54-1  appstream-0.15.4-1  brltty-6.5-2
               clutter-gst-3.0.27-4  colord-sane-1.4.6-1  djvulibre-3.5.28-3  dleyna-connector-dbus-0.4.1-1
               dleyna-core-0.7.0-3  dleyna-renderer-0.7.2-1  dleyna-server-0.7.2-1  dotconf-1.3-6
               evolution-data-server-3.44.4-1  folks-0.15.5-1  freerdp-2:2.8.0-1  gfbgraph-0.2.5-1
               gmime3-3.2.12-1  gnome-autoar-0.4.3-2  gnome-epub-thumbnailer-1.6-2  gom-0.4-5
               grilo-0.3.15-1  gtk-vnc-1.3.1-1  gtksourceview5-5.4.2-1  gupnp-av-0.14.1-1  libao-1.2.2-5
               libchamplain-0.12.20-3  libcheese-41.1-2  libdazzle-3.44.0-1  libdmapsharing-2.9.41-1
               libgdata-0.18.1-2  libgdm-42.0+r11+g4a52f026-1  libgepub-0.6.0-2  libgssglue-0.5-1
               liblouis-3.22.0-1  libmediaart-1.9.6-1  liboauth-1:1.0.3+r15+gac4cf3a-1
               libpackagekit-glib-1.2.5-1  libphonenumber-1:8.12.52-3  libportal-0.6-1
               libportal-gtk3-0.6-1  libspectre-0.2.10-1  libspeechd-0.11.1-3  libvirt-1:8.6.0-2
               libvirt-glib-4.0.0-2  mod_dnssd-0.6-8  python-atspi-2.38.2-1  speech-dispatcher-0.11.1-3
               telepathy-glib-0.24.2-2  yajl-2.1.0-5  baobab-42.0-1  cheese-41.1-2  eog-42.3-1
               epiphany-42.4-1  evince-42.3-1  file-roller-3.42.0-1  gdm-42.0+r11+g4a52f026-1  gedit-42.2-1
               gnome-backgrounds-42.0-1  gnome-books-40.0-1  gnome-boxes-42.3-1  gnome-calculator-42.2-1
               gnome-calendar-42.2-1  gnome-characters-42.0-1  gnome-clocks-42.0-1
               gnome-color-manager-3.36.0+r25+g4aab8b59-1  gnome-contacts-42.0-1
               gnome-control-center-42.3-2  gnome-disk-utility-42.0-1  gnome-font-viewer-42.0-1
               gnome-keyring-1:42.1-1  gnome-logs-42.0-1  gnome-maps-42.3-1  gnome-menus-3.36.0-2
               gnome-music-1:42.1-1  gnome-photos-1:42.0-1  gnome-remote-desktop-42.4-1
               gnome-session-42.0-1  gnome-settings-daemon-42.2-1  gnome-shell-1:42.4-1
               gnome-shell-extensions-42.3-1  gnome-software-42.4-1  gnome-system-monitor-42.0-1
               gnome-terminal-3.44.1-1  gnome-user-docs-42.0-1  gnome-user-share-3.34.0-2
               gnome-video-effects-0.5.0+4+g9554041-2  gnome-weather-42.0-1  grilo-plugins-1:0.3.15-1
               gvfs-1.50.2-1  gvfs-afc-1.50.2-1  gvfs-goa-1.50.2-1  gvfs-google-1.50.2-1
               gvfs-gphoto2-1.50.2-1  gvfs-mtp-1.50.2-1  gvfs-nfs-1.50.2-1  gvfs-smb-1.50.2-1
               malcontent-0.10.5-1  mutter-42.4-1  nautilus-42.2-1  orca-42.3-1  rygel-1:0.40.4-1
               simple-scan-42.1-1  sushi-42.0-1  totem-42.0-1  tracker3-miners-3.3.1-2
               vino-3.22.0+74+g7a95e10-1  xdg-user-dirs-gtk-0.10+9+g5b7efc6-3  yelp-42.1-2
frigaut commented 2 years ago

freaking gnome

vaxerski commented 2 years ago
vaxry@Arch  ~  yay -Q | grep gnome
gnome-keyring 1:42.1-1
libgnomekbd 1:3.28.0-1
 vaxry@Arch  ~  yay -Q | grep gtk  
breeze-gtk 5.25.4-1
clutter-gtk 1.8.4-3
deluge-gtk 1:2.1.1-1
fcitx5-gtk 5.0.16-1
gtk 1.2.10-18
gtk-chtheme 0.3.1-10
gtk-doc 1.33.2-1
gtk-layer-shell 0.7.0-3
gtk-update-icon-cache 1:4.6.7-1
gtk-vnc 1.3.1-1
gtk2 2.24.33-2
gtk3 1:3.24.34-1
gtk4 1:4.6.7-1
gtkglext 1.2.0-13
gtkmm 1:2.24.5-4
gtkmm3 3.24.6-1
gtksourceview4 4.8.3-1
gtksourceview5 5.4.2-1
kde-gtk-config 5.25.4-1
lib32-gtk2 2.24.33-1
lib32-gtk3 3.24.34-1
lib32-libappindicator-gtk2 12.10.0-13
lib32-libdbusmenu-gtk2 16.04.0-5
lib32-libindicator-gtk2 12.10.1-9
libappindicator-gtk3 12.10.0.r296-2
libdbusmenu-gtk2 16.04.0-5
libdbusmenu-gtk3 16.04.0-5
libindicator-gtk2 12.10.1-10
libindicator-gtk3 12.10.1-10
qemu-ui-gtk 7.0.0-12
spice-gtk 0.41-2
webkit2gtk 2.36.6-1
webkit2gtk-4.1 2.36.6-1
wxwidgets-gtk3 3.2.0-4
xdg-desktop-portal-gtk 1.14.0-1
 vaxry@Arch  ~  yay -Q | grep gdk
gdk-pixbuf2 2.42.9-1
lib32-gdk-pixbuf2 2.42.9-1
 vaxry@Arch  ~  

With these, works for me

vaxerski commented 2 years ago

man i need to clean a bunch of those

frigaut commented 2 years ago

OK forget it for now. I need to run more tests. It is not the gnome install/uninstall, not gnome components. be back eventually.

frigaut commented 2 years ago

Apparently it's got to do with some more complex monitor/geometry stuff that might explain why you don't see that. Look at the following:

In this geometry, things look GOOD: screenshot_20220822_211602

Here too: screenshot_20220822_211641

But not here: screenshot_20220822_211632

vaxerski commented 2 years ago

only happens to me when the window is REALLY small:

image

unfortunately it seems like yet another issue with oversized surfaces.

TAforever commented 2 years ago

To reproduce the problem with easyeffects, try setting the minimum gaps value. Regarding starcraft, I understand that this is not a priority, but try to look in your free time. I have tested in other wayland composers (kwin, mutter, sway) and they don't have this problem. If needed, I can provide a portproton debug log. And today I found

https://user-images.githubusercontent.com/52626363/185918753-b92c9dc7-c38b-46b5-b65a-6e6ec527e396.mp4

such a problem in Telegram.

TAforever commented 2 years ago

Yes, I also forgot to say that there is no such problem with gamescope, but in other composers it works fine out of the box. Also, to test starcraft, I can give the password from the battle.net account.

vaxerski commented 2 years ago

don't lmao

Just use gamescope for now, Hyprland does have a few bugs with proton games, yes. The problem usually is just that idk what's wrong.

TAforever commented 2 years ago

don't lmao

Just use gamescope for now, Hyprland does have a few bugs with proton games, yes. The problem usually is just that idk what's wrong. ok i agree proton is a secondary task.

vaxerski commented 2 years ago

telegram issue was prolly fixed in d0ec2b72aec8a91a904b7678ab093e648bd59cf2

TAforever commented 2 years ago

telegram issue was prolly fixed in d0ec2b7

just tested and the problem still exists, I don't know why.

TAforever commented 2 years ago

https://user-images.githubusercontent.com/52626363/185939992-0d1adc76-942a-4165-a861-25432bd72a93.mp4