解决不了就改名,我搞了一个隐藏桌面的动态桌面
Tofloor
poster avatar
Hello
deepin
2020-05-23 02:10
Author
本帖最后由 cht 于 2020-5-28 22:42 编辑

动态桌面位置在根桌面上面,应用层下面,所以点击dock返回桌面可以看到隐藏的桌面,但工作时候桌面是动态桌面捞一下,这是教程

依赖mplayer
依赖2017年就停止维护的xwinwrap
将插件放到dde-file-manager的相关地方
我默认视频是宣传视频,
当然你们可以自己编辑视频。
动态视频播放地方在桌面层一个很微妙的地方,一旦启动桌面的文件夹就看不见了,毕竟是久远代码
哪个大佬修改原代码就更好了


目前打开了只能够杀死mplayer的进程关闭

Reply Favorite View the author
All Replies
avatar
Hello
deepin
2020-05-23 02:13
#1
安装完xxx里的东西后 另一个插件放到/usr/share/deepin/dde-file-manager/oem-menuextensions就行了
Reply View the author
avatar
Hello
deepin
2020-05-23 02:55
#2
做了个还原壁纸的插件
Reply View the author
avatar
Hello
deepin
2020-05-23 02:56
#3
没人理我
Reply View the author
avatar
Hello
deepin
2020-05-23 03:05
#4
不过这样mplayer就不能用了,变成了专门的动态壁纸软件
Reply View the author
avatar
Hello
deepin
2020-05-23 03:12
#5
奇怪了,应该可以找到根窗口啊,为什么找不到呢?
Reply View the author
avatar
Hello
deepin
2020-05-23 03:13
#6
static Window find_desktop_window(Window *p_root, Window *p_desktop)
{
    Atom type;
    int format, i;
    unsigned long nitems, bytes;
    unsigned int n;
    Window root = RootWindow(display, screen);
    Window win = root;
    Window troot, parent, *children;
    unsigned char *buf = NULL;

    if (!p_root || !p_desktop) {
        return 0;
    }

    /* some window managers set __SWM_VROOT to some child of root window */

    XQueryTree(display, root, &troot, &parent, &children, &n);
    for (i = 0; i < (int) n; i++) {
        if (XGetWindowProperty(display, children, ATOM(__SWM_VROOT), 0, 1,
                               False, XA_WINDOW, &type, &format, &nitems, &bytes, &buf)
                == Success && type == XA_WINDOW) {
            win = *(Window *) buf;
            XFree(buf);
            XFree(children);
            if (debug)
            {
                fprintf(stderr,
                        NAME": desktop window (%lx) found from __SWM_VROOT property\n",
                        win);
            }
            fflush(stderr);
            *p_root = win;
            *p_desktop = win;
            return win;
        }

        if (buf) {
            XFree(buf);
            buf = 0;
        }
    }
    XFree(children);

    /* get subwindows from root */
    win = find_subwindow(root, -1, -1);

    display_width = DisplayWidth(display, screen);
    display_height = DisplayHeight(display, screen);

    win = find_subwindow(win, display_width, display_height);

    if (buf) {
        XFree(buf);
        buf = 0;
    }

    if (win != root && debug) {
        fprintf(stderr,
                NAME": desktop window (%lx) is subwindow of root window (%lx)\n",
                win, root);
    } else if (debug) {
        fprintf(stderr, NAME": desktop window (%lx) is root window\n", win);
    }

    fflush(stderr);

    *p_root = root;
    *p_desktop = win;

    return win;
}
代码中这一段是找根窗口的,但是显然对于V20,还少了一层窗口,没有找到
Reply View the author
avatar
神末shenmo
deepin
Spark-App
Q&A Team
2020-05-23 03:29
#7
同没找到。。。
如果你做好了再发出来相信会有人回复的
V20不知为何就是会覆盖掉
Reply View the author
avatar
Hello
deepin
2020-05-23 03:40
#8
https://bbs.deepin.org/post/194882
同没找到。。。
如果你做好了再发出来相信会有人回复的
V20不知为何就是会覆盖掉 ...

不对,这个不是原始代码,如果能找到原始代码,只要根目录再深一个应该可以解决
Reply View the author
avatar
神末shenmo
deepin
Spark-App
Q&A Team
2020-05-23 03:44
#9
https://bbs.deepin.org/post/194882
不对,这个不是原始代码,如果能找到原始代码,只要根目录再深一个应该可以解决 ...

你指哪个原始代码?
Reply View the author
avatar
Hello
deepin
2020-05-23 04:29
#10
https://bbs.deepin.org/post/194882
你指哪个原始代码?


xwinwrap-master.zip

24.15 KB, 下载次数: 0
这里面是源代码。C语言的
有能力的帮忙改一改,它应该就是没找到根桌面
Reply View the author
avatar
Hello
deepin
2020-05-23 04:36
#11
C语言,简单的哦,来个大佬吧
Reply View the author
avatar
Hello
deepin
2020-05-23 04:51
#12
我放弃了,来个人改代码吧
Reply View the author
avatar
neko
deepin
Ecological co-builder
Q&A Team
2020-05-23 05:07
#13
之前弄过动态壁纸,太吃cpu就放弃了
Reply View the author
avatar
Hello
deepin
2020-05-23 05:18
#14
https://bbs.deepin.org/post/194882
之前弄过动态壁纸,太吃cpu就放弃了

为了动态壁纸,我把桌面清空了,如果有谁修改代码就好了
Reply View the author
avatar
jianguo922
deepin
2020-05-23 05:37
#15
晒一下图

Reply View the author
avatar
Hello
deepin
2020-05-23 05:47
#16

服务器错误,我传不了图
Reply View the author
avatar
Hello
deepin
2020-05-23 19:45
#17
捞一下,来个人
Reply View the author
avatar
Hello
deepin
2020-05-29 06:39
#18
捞一下,我再捞,钓大佬
Reply View the author