[Gambas Bug Tracker] Bug #1078: X11 Systray behaves strangely under GTK or QT5

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1078: X11 Systray behaves strangely under GTK or QT5

bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1078&from=L21haW4-

Tony MOREHEN reported a new bug.

Summary
-------

X11 Systray behaves strangely under GTK or QT5

Type             : Bug
Priority         : Medium
Gambas version   : Unknown
Product          : Unknown


Description
-----------

Under GTK, Systray icons must be placed using absolute screen coordinates, not relative to the proper window (as set in Systray.Show(Handle).  The background of transparent icons is correct ie set to the appropriate window background.

Under GTK 3 Systray icons also must be placed according to absolute screen coordinates.  Also, their backgrounds correspond to the root window background.

Under QT5 no icons are shown accompanied by the following error messages:
QXcbWindows unhandled client message: _NET_SYSTEMTRAY_OPCODE
QXcbWindows unhandled client message: _NET_WM_DESKTOP
QXcbWindows unhandled client message: _NET_SYSTEMTRAY_OPCODE

QT4 behaves correctly.


System information
------------------

[System]
Gambas=3.9.90 r8081
OperatingSystem=Linux
Kernel=4.9.6-1-MANJARO
Architecture=x86_64
Distribution=Manjaro Linux
Desktop=XFCE
Theme=Gtk
Language=en_CA.utf8
Memory=3947M

[Libraries]
Cairo=libcairo.so.2.11400.8
Curl=libcurl.so.4.4.0
DBus=libdbus-1.so.3.14.9
GStreamer=libgstreamer-1.0.so.0.1002.0
GTK+2=libgtk-x11-2.0.so.0.2400.31
GTK+3=libgtk-3.so.0.2200.7
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.66.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.7.1
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=xfce
DISPLAY=:0.0
GB_GUI=gb.qt4
GDMSESSION=xfce
GLADE_CATALOG_PATH=:
GLADE_MODULE_PATH=:
GLADE_PIXMAP_PATH=:
GTK2_RC_FILES=<home>/.gtkrc-2.0
GTK_MODULES=canberra-gtk-module
HOME=<home>
LANG=en_CA.utf8
LC_ADDRESS=en_CA.UTF-8
LC_IDENTIFICATION=en_CA.UTF-8
LC_MEASUREMENT=en_CA.UTF-8
LC_MONETARY=en_CA.UTF-8
LC_NAME=en_CA.UTF-8
LC_NUMERIC=en_CA.UTF-8
LC_PAPER=en_CA.UTF-8
LC_TELEPHONE=en_CA.UTF-8
LC_TIME=en_CA.UTF-8
LOGNAME=<user>
MAIL=/var/spool/mail/<user>
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PWD=<home>
QT_QPA_PLATFORMTHEME=qt5ct
SAL_USE_VCLPLUGIN=gtk
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/869,unix/<hostname>:/tmp/.ICE-unix/869
SHELL=/bin/bash
SHLVL=2
SSH_AGENT_PID=876
SSH_AUTH_SOCK=/tmp/ssh-794ynjbHgEXA/agent.875
TZ=:/etc/localtime
USER=<user>
XAUTHORITY=<home>/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg
XDG_CURRENT_DESKTOP=XFCE
XDG_DATA_DIRS=/usr/local/share:/usr/share
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user>
XDG_MENU_PREFIX=xfce-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_DESKTOP=xfce
XDG_SESSION_ID=c2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7
_=/usr/bin/gambas3



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1078: X11 Systray behaves strangely under GTK or QT5

bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1078&from=L21haW4-

Comment #1 by Benoît MINISINI:

Can you make a little project that shows exactly what the problem is?



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1078: X11 Systray behaves strangely under GTK or QT5

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1078&from=L21haW4-

Comment #2 by Tony MOREHEN:

I've put together a little project and have some new findings.

In the little project, I changed the systray component from a drawing area to a panel.  Now GTK2 works properly.  In the original project, a similar change also works.  However, other parts of the original now fail, even though they worked under QT4.

QT5 still fails with those error messages.
GTK3 also still has issues but I misinterpreted what I saw earlier.  Now it seems that the GTK icons are positioned realtive to the project's main form and appropriately have a transparent background.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1078: X11 Systray behaves strangely under GTK or QT5

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1078&from=L21haW4-

Tony MOREHEN added an attachment:

systray-0.0.1.tar.gz



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1078: X11 Systray behaves strangely under GTK or QT5

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1078&from=L21haW4-

Benoît MINISINI changed the state of the bug to: Accepted.




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1078: X11 Systray behaves strangely under GTK or QT5

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1078&from=L21haW4-

Comment #3 by Benoît MINISINI:

The X11 systray needs a control associated with a X11 window handle. With gb.gtk, it is the case when you use a DrawingArea.
With gb.gtk3, even the DrawingArea does not have a X11 window, so the top level window is used.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Loading...