This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2gokdrive. commit fff43e3cec3643aed51f4df51f5393ef4866cfad Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de> Date: Fri May 19 12:31:15 2023 -0600 support for windows with type _NET_WM_WINDOW_TYPE_DND. Ignore windows with visibility >= 2. --- debian/changelog | 2 ++ x2gokdriveremote.c | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 0c54f15..49f6b8a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -43,6 +43,8 @@ x2gokdrive (0.0.0.1-0x2go1) UNRELEASED; urgency=medium - fix building on Xorg < 11900000. - don't exit when setting command line arguments -xkb-model, -xkb-layout, -xkb-variant on Xorg < 11899001. + - support for windows with type _NET_WM_WINDOW_TYPE_DND. Ignore windows + with visibility >= 2. [ Mihai Moldovan ] * Initial release: diff --git a/x2gokdriveremote.c b/x2gokdriveremote.c index 735cc24..c8ff6c2 100644 --- a/x2gokdriveremote.c +++ b/x2gokdriveremote.c @@ -4117,7 +4117,7 @@ void remote_check_window(WindowPtr win) } // EPHYR_DBG("Check win %p",win); - if(!win->optional || !win->optional->userProps || !win->mapped || win->visibility<0 || win->visibility>2) + if(!win->optional || !win->optional->userProps || !win->mapped || win->visibility<0 || win->visibility>=2) { return; } @@ -4245,6 +4245,13 @@ void remote_check_window(WindowPtr win) { winType=WINDOW_TYPE_UTILITY; } + else if( at[0] ==MakeAtom("_NET_WM_WINDOW_TYPE_DND", strlen("_NET_WM_WINDOW_TYPE_DND"),FALSE)) + { + //drag window has the similair properties as utility window +// EPHYR_DBG("Drag Window, WINDOW Type: %s, my ID 0x%X",NameForAtom( at[0] ), win->drawable.id); + winType=WINDOW_TYPE_UTILITY; + } + } } // if(prop->propertyName==MakeAtom("WM_STATE", strlen("WM_STATE"),FALSE) && prop->data) -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gokdrive.git