[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting real size and position for arranged controls.


Il 27/01/25 17:59, Bruce Steers ha scritto:
Is there a way to get a TrayIcon working on Wayland?

As far as I know TrayIcon and Clipboard class do not work in wayland.

As far as I know, TrayIcon works fine on Wayland or at least this code
(project1 bottom of page) works on Ubuntu 24.04:
https://gambas-buch.de/doku.php?id=k19:k19.2:start
See system information (*) and attached images.

Regards
Gianluigi

(*)
[System]
Gambas=3.20.99 883bf97 (master)
OperatingSystem=Linux
Distribution=Ubuntu 24.04.1 LTS (Noble Numbat)
Kernel=6.8.0-51-generic
Architecture=x86_64
Cores=4
Memory=5925M
Language=it_IT.UTF-8
Platform=wayland
Desktop=UBUNTU
DesktopResolution=96
DesktopScale=8
WidgetTheme=yaru
Font=Ubuntu Sans,11
DarkTheme=False
[Programs]
dpkg=Debian "dpkg", programma di gestione dei pacchetti versione 1.22.6
(amd64).
gcc=gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
msgmerge=msgmerge (GNU gettext-tools) 0.21
rpmbuild=RPM version 4.18.2
[Libraries]
Cairo=libcairo.so.2.11800.0
Curl=libcurl.so.4.8.0
DBus=libdbus-1.so.3.32.4
GDK2=libgdk-x11-2.0.so.0.2400.33
GDK3=libgdk-3.so.0.2409.32
GStreamer=libgstreamer-1.0.so.0.2402.0
GTK+2=libgtk-x11-2.0.so.0.2400.33
GTK+3=libgtk-3.so.0.2409.32
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.134.0.0
QT5=libQt5Core.so.5.15.13
QT6=libQt6Core.so.6.4.2
RSvg=librsvg-2.so.2.50.0
SDL=libSDL2-2.0.so.0.3000.0
SQLite3=libsqlite3.so.0.8.6
[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEBUGINFOD_URLS=https://debuginfod.ubuntu.com
DESKTOP_SESSION=ubuntu
DISPLAY=:0
GB_GUI=gb.gtk3
GDMSESSION=ubuntu
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=3598
GJS_DEBUG_OUTPUT=stderr
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_SETUP_DISPLAY=:1
GNOME_SHELL_SESSION_MODE=ubuntu
GSM_SKIP_SSH_AGENT_WORKAROUND=true
GTK_MODULES=gail:atk-bridge
HOME=<home>
IM_CONFIG_PHASE=1
INVOCATION_ID=4d3661e0d33b45a6b07dae5aec6b8955
JOURNAL_STREAM=8:15672
LANG=it_IT.UTF-8
LANGUAGE=it_IT.UTF-8
LOGNAME=<user>
MANAGERPID=1737
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/session.slice/org.gnome.Shell@wayland.service/memory.pressure
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
PWD=<home>
QTWEBENGINE_DICTIONARIES_PATH=/usr/share/hunspell-bdic/
QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus
QT_LOGGING_RULES=*.debug=false
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1958,unix/<hostname>:/tmp/.ICE-unix/1958
SHELL=/bin/bash
SHLVL=0
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
SYSTEMD_EXEC_PID=1996
TZ=:/etc/localtime
USER=<user>
USERNAME=<user>
WAYLAND_DISPLAY=wayland-0
XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.TEYT02
XDG_ACTIVATION_TOKEN=gnome-shell/Gambas 3/1996-12-<hostname>_TIME840672
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
XDG_CURRENT_DESKTOP=ubuntu:GNOME
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=wayland
XMODIFIERS=@im=ibus
_=/usr/bin/gnome-session

Attachment: tray-donald.jpg
Description: JPEG image

Attachment: tray-mikey.jpg
Description: JPEG image


Follow-Ups:
Re: Getting real size and position for arranged controls.Gianluigi <gradobag@xxxxxxxxxxx>
References:
Getting real size and position for arranged controls.Carlos Prieto <caprilo@xxxxxxxx>
Re: Getting real size and position for arranged controls.T Lee Davidson <t.lee.davidson@xxxxxxxxx>
Re: Getting real size and position for arranged controls.Gianluigi <gradobag@xxxxxxxxxxx>
Re: Getting real size and position for arranged controls.Carlos Prieto López <caprilo@xxxxxxxx>
Re: Getting real size and position for arranged controls.Gianluigi <gradobag@xxxxxxxxxxx>
Re: Getting real size and position for arranged controls.T Lee Davidson <t.lee.davidson@xxxxxxxxx>
Re: Getting real size and position for arranged controls.Bruce Steers <bsteers4@xxxxxxxxx>
Re: Getting real size and position for arranged controls.Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Getting real size and position for arranged controls.Bruce Steers <bsteers4@xxxxxxxxx>
Re: Getting real size and position for arranged controls.Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Getting real size and position for arranged controls.Bruce Steers <bsteers4@xxxxxxxxx>