Skip to content
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

Plasma 5 widgets on under background video #1

Open
varlesh opened this issue Dec 26, 2017 · 25 comments
Open

Plasma 5 widgets on under background video #1

varlesh opened this issue Dec 26, 2017 · 25 comments

Comments

@varlesh
Copy link
Owner

varlesh commented Dec 26, 2017

peek 2017-12-26 12-51

@varlesh
Copy link
Owner Author

varlesh commented Dec 26, 2017

INFO:

  • Command: sh -c 'nice xwinwrap -ni -argb -fs -un -s -st -sp -b -nf -ov -d -- mpv --profile wallpaper --wid WID /usr/share/christmas-snow-village/christmas-snow-village.webm'
  • OS: KDE Neon
  • Plasma: 5.11.4
  • KDE Frameworks: 5.41.0
  • Qt: 5.9.3
  • Kernel: 4.10
  • Xorg: 1:7.7+13ubuntu3
  • Nvidia: 387

@varlesh
Copy link
Owner Author

varlesh commented Dec 26, 2017

@aaahh Hi, your issues closed, i open here. It's possible fixed?

@mmhobi7
Copy link

mmhobi7 commented Dec 26, 2017

I think that's from the commit I mentioned earlier, Ill check. Add the -fdt flag. Also use bash instead of sh.
If you are talking about the argb it might be mpv

@varlesh
Copy link
Owner Author

varlesh commented Dec 26, 2017

flag -fdt not solve this. Anyway widgets on workspace under background video

@varlesh
Copy link
Owner Author

varlesh commented Dec 26, 2017

peek 2017-12-26 23-37

@mmhobi7
Copy link

mmhobi7 commented Dec 27, 2017

confirmed mmhobi7@5cd0f77 is the culprit, I'm debugging

mmhobi7 added a commit to mmhobi7/xwinwrap that referenced this issue Dec 28, 2017
overrides root window so that "Desktop" windows appear above it

Attempts to fix: varlesh#1
@mmhobi7
Copy link

mmhobi7 commented Dec 28, 2017

try now with the new -ovr flag,
bash -c 'nice xwinwrap -ni -argb -nf -ovr -d -- mpv --profile wallpaper --wid WID /usr/share/christmas-snow-village/christmas-snow-village.webm'
turns out that mmhobi7@5cd0f77 corrected a bug in finding the desktop window and hence revealed this new bug.
The other flags you had did nothing with ov enabled, and do nothing with ovr enabled too

@mmhobi7
Copy link

mmhobi7 commented Dec 28, 2017

Also argb is broken, which you can confirm because the snow only video did overlay (was black)?

@varlesh
Copy link
Owner Author

varlesh commented Dec 28, 2017

@aaahh -ovr flag not avialable. Program not start with this flag. Try with your master branch

@varlesh
Copy link
Owner Author

varlesh commented Dec 28, 2017

Also argb is broken, which you can confirm because the snow only video did overlay (was black)?

no, i seen video with this flag on KDE

@mmhobi7
Copy link

mmhobi7 commented Dec 28, 2017

What I meant was the snowflakes could be seen but the black behind the snowflakes was still black and not transparent
I’ve tested with ovr and it worked fine, run it again with the -debug flag

@mmhobi7
Copy link

mmhobi7 commented Dec 28, 2017

And without the -d flag

@varlesh
Copy link
Owner Author

varlesh commented Dec 28, 2017

with -ovr i'm not see workspace, only fullscreen video.
LOG:

bash -c 'nice xwinwrap -ni -argb -nf -ovr -debug -- mpv --profile wallpaper --wid WID /home/alex/PPA/christmas-snow-village-20171224/data/christmas-snow-village.webm'
xwinwrap: desktop window (200000a) is subwindow of root window (1da)
Found ARGB Visual
xwinwrap: window type - override
Playing: /home/alex/PPA/christmas-snow-village-20171224/data/christmas-snow-village.webm
 (+) Video --vid=1 (*) (vp9)
     Audio --aid=1 (*) (vorbis)
Using software decoding.
VO: [opengl] 1920x1080 yuv420p

@varlesh
Copy link
Owner Author

varlesh commented Dec 28, 2017

panels, widget - all under video

@varlesh
Copy link
Owner Author

varlesh commented Dec 28, 2017

What I meant was the snowflakes could be seen but the black behind the snowflakes was still black and not transparent

Ouh... my video without black background )) But i'm now tetst snowflakes with black background and video not transparent

@mmhobi7
Copy link

mmhobi7 commented Dec 28, 2017

thanks so argb is broken,
anyways run:
$ xwininfo
and then click the widget
and xwininfo again and click a panel
and then
$ xwininfo -root -tree

@varlesh
Copy link
Owner Author

varlesh commented Dec 28, 2017

xwininfo on clock:

xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x200000a "Рабочий стол по умолчанию — Plasma"

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1920
  Height: 1080
  Depth: 32
  Visual: 0x7a
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x2000009 (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+0  -0+0  -0-0  +0-0
  -geometry 1920x1080+0+0

xwininfo on up panel:

xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x2000018 "Plasma"

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1920
  Height: 32
  Depth: 32
  Visual: 0x7a
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x2000017 (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+0  -0+0  -0-1048  +0-1048
  -geometry 1920x32+0+0

xwininfo on dock:

xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x320000a "Latte Shell — Latte Dock"

  Absolute upper-left X:  0
  Absolute upper-left Y:  1020
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1920
  Height: 60
  Depth: 32
  Visual: 0x7a
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x3200009 (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+1020  -0+1020  -0-0  +0-0
  -geometry 1920x60+0-0

xwininfo -root -tree

xwininfo -root -tree

xwininfo: Window id: 0x1da (the root window) (has no name)

  Root window id: 0x1da (the root window) (has no name)
  Parent window id: 0x0 (none)
     100 children:
     0x540001f "Konsole": ("konsole" "konsole")  416x370+654+434  +654+434
     0x540001a "Konsole": ("konsole" "konsole")  243x121+617+758  +617+758
     0x3200012 "Latte Dock": ("latte-dock" "lattedock")  247x187+1200+833  +1200+833
     0x3e00016 (has no name): ()  404x45+896+200  +896+200
     0x540000f (has no name): ()  3x3+0+0  +0+0
     0x5400008 (has no name): ()  1x1+0+0  +0+0
     0x5400004 (has no name): ()  1x1+0+0  +0+0
     0x5400003 (has no name): ()  3x3+0+0  +0+0
     0x2000024 "Plasma": ("plasmashell" "plasmashell")  788x497+18+50  +18+50
     0x200003a "Plasma": ("plasmashell" "plasmashell")  452x398+1357+32  +1357+32
     0x4c0008c "Dolphin": ("dolphin" "dolphin")  299x111+1362+950  +1362+950
     0x2e00006 "Yakuake": ("yakuake" "yakuake")  960x419+480+32  +480+32
     0x22784d6 (has no name): ()  1920x1080+0+0  +0+0
     0x4a00013 (has no name): ()  1x1+0+0  +0+0
     0x2000043 "Plasma": ("plasmashell" "plasmashell")  434x52+1467+50  +1467+50
     0x2000040 "Plasma": ("plasmashell" "plasmashell")  434x52+1467+50  +1467+50
     0x2000046 "Plasma": ("plasmashell" "plasmashell")  434x52+1467+50  +1467+50
     0x4c00027 "Dolphin": ("dolphin" "dolphin")  299x111+1384+866  +1384+866
     0x4c00008 (has no name): ()  3x3+0+0  +0+0
     0x4c00007 (has no name): ()  1x1+0+0  +0+0
     0x4c00003 (has no name): ()  3x3+0+0  +0+0
     0x3e0001a "Chromium clipboard": ()  10x10+-100+-100  +-100+-100
     0x4200007 (has no name): ()  1x1+0+0  +0+0
     0x3e00005 (has no name): ()  1x1+0+0  +0+0
     0x4400001 (has no name): ()  1x1+0+0  +0+0
     0x3c00008 (has no name): ()  1x1+-1+-1  +-1+-1
     0x3c00003 "google-chrome-stable": ("google-chrome-stable" "Google-chrome-stable")  200x200+0+0  +0+0
        1 child:
        0x3c00004 (has no name): ()  1x1+-1+-1  +-1+-1
     0x3c00001 "google-chrome-stable": ("google-chrome-stable" "Google-chrome-stable")  10x10+10+10  +10+10
     0x200002d "Plasma": ("plasmashell" "plasmashell")  520x620+1155+32  +1155+32
     0x2000059 "Plasma": ("plasmashell" "plasmashell")  398x281+802+32  +802+32
     0x2000050 (has no name): ()  3x3+0+0  +0+0
     0x200003d "Plasma": ("plasmashell" "plasmashell")  640x480+0+0  +0+0
     0x2000037 "Plasma": ("plasmashell" "plasmashell")  20x20+0+0  +0+0
     0x2000034 "Plasma": ("plasmashell" "plasmashell")  20x20+0+0  +0+0
     0x200002a "Plasma": ("plasmashell" "plasmashell")  20x20+0+0  +0+0
     0x2000027 "Plasma": ("plasmashell" "plasmashell")  20x20+0+0  +0+0
     0x2000012 "Plasma": ("plasmashell" "plasmashell")  20x20+0+0  +0+0
     0x2000010 (has no name): ()  1x1+0+0  +0+0
     0x200000e "Plasma": ("plasmashell" "plasmashell")  20x1048+0+32  +0+32
     0x200000c (has no name): ()  1x1+0+0  +0+0
     0x2000003 (has no name): ()  3x3+0+0  +0+0
     0x240000b "Диалог поиска и запуска — krunner": ("krunner" "krunner")  536x49+692+0  +692+0
     0x2e0000f (has no name): ()  3x3+0+0  +0+0
     0x226b04f "KWin": ("kwin_x11" "kwin")  342x189+1398+158  +1398+158
     0x226b051 (has no name): ()  1x1+0+0  +0+0
     0x2254b38 (has no name): ()  1x1+0+0  +0+0
     0x2254b1b (has no name): ()  1x1+0+0  +0+0
     0x32000a0 "Latte Dock": ("latte-dock" "lattedock")  32x32+1322+1065  +1322+1065
     0x4e00003 (has no name): ()  3x3+0+0  +0+0
     0x3a00004 (has no name): ()  3x3+0+0  +0+0
     0x4800004 (has no name): ()  1x1+0+0  +0+0
     0x4800003 (has no name): ()  3x3+0+0  +0+0
     0x600003 (has no name): ()  3x3+0+0  +0+0
     0x240000e (has no name): ()  3x3+0+0  +0+0
     0x3a00003 (has no name): ()  3x3+0+0  +0+0
     0x3200019 "Latte Dock": ("latte-dock" "lattedock")  160x160+0+0  +0+0
     0x3800003 (has no name): ()  3x3+0+0  +0+0
     0x320000f "Latte Dock": ("latte-dock" "lattedock")  160x160+0+0  +0+0
     0x2200024 (has no name): ()  1920x60+0+0  +0+0
     0x320000d (has no name): ()  1x1+0+0  +0+0
     0x320000c (has no name): ()  1x1+0+0  +0+0
     0x2200015 (has no name): ()  1x1+0+0  +0+0
     0x240000d (has no name): ()  1x1+0+0  +0+0
     0x2400009 (has no name): ()  1x1+0+0  +0+0
     0x2200005 (has no name): ()  1x1+-1+-1  +-1+-1
     0x2e00008 (has no name): ()  1x1+0+0  +0+0
     0x2e00004 (has no name): ()  1x1+0+0  +0+0
     0x1200001 "caffeine": ("caffeine" "")  10x10+10+10  +10+10
     0x2200004 (has no name): ()  1x1+0+0  +0+0
     0x3400003 (has no name): ()  3x3+0+0  +0+0
     0x3200003 (has no name): ()  3x3+0+0  +0+0
     0x2e00003 (has no name): ()  3x3+0+0  +0+0
     0x1e00005 (has no name): ()  1x1+0+0  +0+0
     0x1e00004 (has no name): ()  1x1+0+0  +0+0
     0x2a00002 (has no name): ()  1x1+0+0  +0+0
     0xc00004 (has no name): ()  1x1+0+0  +0+0
     0x2600004 (has no name): ()  1x1+0+0  +0+0
     0x2600003 (has no name): ()  3x3+0+0  +0+0
     0x2400003 (has no name): ()  3x3+0+0  +0+0
     0x2200003 (has no name): ()  3x3+0+0  +0+0
     0x1400003 (has no name): ()  3x3+0+0  +0+0
     0x1e00003 (has no name): ()  3x3+0+0  +0+0
     0x1c00004 (has no name): ()  1x1+0+0  +0+0
     0x1800004 (has no name): ()  1x1+0+0  +0+0
     0x1c00003 (has no name): ()  3x3+0+0  +0+0
     0x1000004 (has no name): ()  1x1+0+0  +0+0
     0x1a00003 (has no name): ()  3x3+0+0  +0+0
     0x1800003 (has no name): ()  3x3+0+0  +0+0
     0x1000003 (has no name): ()  3x3+0+0  +0+0
     0xa00001 (has no name): ()  1x1+0+0  +0+0
     0xc00003 (has no name): ()  3x3+0+0  +0+0
     0x800003 (has no name): ()  3x3+0+0  +0+0
     0x200001 (has no name): ()  10x10+-20+-20  +-20+-20
     0x2200006 "KWin": ()  1x1+0+0  +0+0
     0x22000b6 (has no name): ()  1920x60+0+1020  +0+1020
        1 child:
        0x22000b7 (has no name): ()  1920x60+0+0  +0+1020
           1 child:
           0x320000a "Latte Shell — Latte Dock": ("latte-dock" "lattedock")  1920x60+0+0  +0+1020
     0x227c0c5 (has no name): ()  1920x32+0+0  +0+0
        1 child:
        0x227c0c6 (has no name): ()  1920x32+0+0  +0+0
           1 child:
           0x2000018 "Plasma": ("plasmashell" "plasmashell")  1920x32+0+0  +0+0
     0x22e3be6 (has no name): ()  789x458+565+327  +565+327
        1 child:
        0x22e3be7 (has no name): ()  787x426+1+31  +566+358
           1 child:
           0x5400006 "alex : bash — Konsole": ("konsole" "konsole")  787x426+0+0  +566+358
     0x22cffc5 (has no name): ()  1371x823+167+83  +167+83
        1 child:
        0x22cffc6 (has no name): ()  1369x791+1+31  +168+114
           1 child:
           0x3e00001 "Plasma 5 widgets on under background video · Issue #1 · varlesh/xwinwrap - Google Chrome": ("google-chrome" "Google-chrome")  1369x791+0+0  +168+114
              2 children:
              0x4600003 (has no name): ()  1x1+0+0  +168+114
              0x420000a (has no name): ()  1369x791+0+0  +168+114
     0x22d18da (has no name): ()  995x691+459+244  +459+244
        1 child:
        0x22d18db (has no name): ()  993x659+1+31  +460+275
           1 child:
           0x4c00005 "Видео — Dolphin": ("dolphin" "dolphin")  993x659+0+0  +460+275
     0x227c0b2 (has no name): ()  1920x1080+0+0  +0+0
        1 child:
        0x227c0b3 (has no name): ()  1920x1080+0+0  +0+0
           1 child:
           0x200000a "Рабочий стол по умолчанию — Plasma": ("plasmashell" "plasmashell")  1920x1080+0+0  +0+0

image

@mmhobi7
Copy link

mmhobi7 commented Dec 28, 2017

xwininfo and then click the wallpaper

@varlesh
Copy link
Owner Author

varlesh commented Dec 28, 2017

xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x200000a "Рабочий стол по умолчанию — Plasma"

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1920
  Height: 1080
  Depth: 32
  Visual: 0x7a
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x2000009 (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+0  -0+0  -0-0  +0-0
  -geometry 1920x1080+0+0

i think clock widget not selected really

@mmhobi7
Copy link

mmhobi7 commented Dec 28, 2017

The window you clicked is an overlay over the background for icons and menus and such. I think the clock widget is drawn to the same window, which makes sense.
I wonder if the background is drawn to the same window too.
xdotool windowunmap 0x200000a
save your work before you run that
if it works then run xwininfo and click the background again

@varlesh
Copy link
Owner Author

varlesh commented Dec 28, 2017

xdotool windowunmap 0x200000a - disappeared clock widget and wallpaper
image

@mmhobi7
Copy link

mmhobi7 commented Dec 28, 2017

Plasma 5 draws the background and the widgets onto the same window, I can't do anything about that.
If I can get argb working, then maybe I could make a circle of transparent in that area so that the clock shows up, but the shadows would be off and I bet it would look funny.

anyways, for plasma 5, https://forum.kde.org/viewtopic.php?f=83&t=119463#p331838

@mmhobi7
Copy link

mmhobi7 commented Dec 28, 2017

or xwinwrap could be widget on plasma 5 like the clock

@varlesh
Copy link
Owner Author

varlesh commented Dec 28, 2017

If I can get argb working, then maybe I could make a circle of transparent in that area so that the clock shows up, but the shadows would be off and I bet it would look funny.

😆 Not needed. It's strange because all widgets mobile and can moved on all area workspace

@varlesh
Copy link
Owner Author

varlesh commented Dec 28, 2017

@aaahh Thx for your support :)

mmhobi7 added a commit to mmhobi7/xwinwrap that referenced this issue Aug 2, 2021
overrides root window so that "Desktop" windows appear above it

Attempts to fix: varlesh#1
mmhobi7 added a commit to mmhobi7/xwinwrap that referenced this issue Aug 2, 2021
overrides root window so that "Desktop" windows appear above it

Attempts to fix: varlesh#1


Former-commit-id: a6f91eb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants