phreed
December 5, 2024, 5:10pm
1
I thought this was an application issue but now I have two cases:
Here is the script for element:
#!/bin/bash
FLAGS=''
if [[ $XDG_SESSION_TYPE == "wayland" && -e "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" ]]
then
FLAGS="$FLAGS --enable-wayland-ime --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebRTCPipeWireCapturer"
if [ -c /dev/nvidia0 ]
then
FLAGS="$FLAGS --disable-gpu-sandbox"
fi
else
FLAGS="$FLAGS --enable-features=WebRTCPipeWireCapturer"
fi
env TMPDIR="$XDG_RUNTIME_DIR/app/${FLATPAK_ID:-im.riot.Riot}" zypak-wrapper /app/Element/element-desktop $FLAGS "$@"
inffy
December 5, 2024, 5:38pm
2
Atleast the riot (element) is a electron app and they had to do some hoops to get wayland working with the flatpak. And the resizing issue is known, you just have to turn off the wayland protocol in flatseal to make it work.
One issue in riot flatpak repo in github: Window is not resizable in 1.11.80 build · Issue #477 · flathub/im.riot.Riot · GitHub
Plyply
December 5, 2024, 5:55pm
3
Not sure if it will help, but you could try enabling resize with right-click.
so you would hold down the super
key and drag window corners while holding down right mouse button.
phreed
December 5, 2024, 6:27pm
4
Yes, using gnome-tweaks, I turned on Windows → Click-Actions → Resize-with-Secondary-Click.
Now I can resize with the “secondary-click” as you suggested.
I have been messing with flatseal
setting for the two apps.
The following seems to cause the two applications to use X11 rather than Wayland.
Socket:
Wayland windowing system : off
Fallback to X11 windowing system : on
Environment:
ELECTRON_OZONE_PLATFORM_HINT=x11
I had been using Alt-F8 but that is sensitive to the direction the mouse first moves.
1 Like