-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Damage for sticky windows is not computed correctly #262
Comments
The window is a GTK window. Here is the glade file, that produced it: https://github.com/phuhl/linux_notification_center/blob/feature/wayland/notification.glade Here is some haskell code that configures the window: when (layerShellSupported && not isLayered) $ do
LayerShell.initForWindow mainWindow
LayerShell.setLayer mainWindow LayerOverlay
LayerShell.autoExclusiveZoneEnable mainWindow
LayerShell.setExclusiveZone mainWindow 0
LayerShell.setNamespace mainWindow "deadd-notification-center"
if layerShellSupported then do
LayerShell.setMonitor mainWindow monitor
LayerShell.setMargin mainWindow EdgeRight
(fromIntegral distanceRight)
LayerShell.setMargin mainWindow EdgeTop hBefore
LayerShell.setAnchor mainWindow EdgeRight True
LayerShell.setAnchor mainWindow EdgeTop True
else
windowMove mainWindow
(screenW - fromIntegral
(configWidthNoti config + distanceRight))
hBefore Hope that helps. |
Weird because I use a semitransparent |
That could be caused by wrongly set opaque regions by the client. Can you provide a WAYLAND_DEBUG log of the client? |
How would I obtain those? |
|
Got it. Sorry for the delay.
I added two empty lines before the creation of the effected window. |
The new niri has a debug key binding to enable opaque region display. Could you check if this window is covered in blue? In that case the niri behavior is expected, and it would be likely a client bug. This log seems to imply so as well:
|
Sticky windows with transparent parts have the wrong background when switching windows below them. Could not take a screenshot of it, hat to take a foto. Upper notification was produced on a dark background, then I moved focus to emacs (white background). Second notification was produced directly on bright background. Note how the corners of the first are dark, but should be white.
System Information
niri version: niri 0.1.3 (v0.1.3-31-g4740682)
GPU: Intel® Iris® Xe Graphics
CPU: 13th Gen Intel® Core™ i7-1360P (18 MB cache, 12 cores, up to 5.00 GHz Turbo)
https://wiki.archlinux.org/title/Dell_XPS_13_Plus_(9320)
The text was updated successfully, but these errors were encountered: