Bug 509871 - Emacs window can't be resized normally on Wayland
Summary: Emacs window can't be resized normally on Wayland
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 6.3.4
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2025-09-24 15:12 UTC by steve_garnier
Modified: 2025-09-25 15:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
attachment-1927278-0.html (3.44 KB, text/html)
2025-09-25 15:59 UTC, steve_garnier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description steve_garnier 2025-09-24 15:12:31 UTC
SUMMARY
Problem with respect to emacs window resizing. 

STEPS TO REPRODUCE
System should be a fresh install that has never run X11.  

1.  Within Wayland, open a Konsole terminal and enter "emacs -fg yellow -bg black -cr red -geometry 80x40 $@ &".  This is using the emacs-pgtk package.  This will result in the opening of an independent emacs window. 
2.  Attempt to change the size of the resulting window by placing the mouse cursor on any border or corner.  Attempt this several times from multiple borders and corners.  

OBSERVED RESULT
The resulting emacs border motion is limited to a "smidgen"...a highly technical term. ;-)  

EXPECTED RESULT
The emacs window should easily resize in all directions dictated by mouse manipulation.  This is not an issue with X11.  

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 25.04, Linux  6.14.0-32-generic #32-Ubuntu SMP PREEMPT_DYNAMIC 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0 
Qt Version: 6.8.3

ADDITIONAL INFORMATION
HARDWARE: 
CPU: AMD Ryzen 9 9900X
GPU: NVIDIA GeForce RTX 5070
Mboard: MSI PRO B650-VC WIFI III
RAM: 32 GB DDR5
2 x 2 TB SSD WD_BLACK SN850X HS 2000GB w/ heatsink
Dual identical resolution monitors used side-by-side forming single desktop.
Comment 1 Akseli Lahtinen 2025-09-25 09:04:55 UTC
Isn't this issue with emacs, not kwin?

Anyway, I can't reproduce this, I can resize emacs just fine. Might be already fixed in future versions.
Closing this for now.

Operating System: Fedora Linux 42
KDE Plasma Version: 6.5.80
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2
Kernel Version: 6.16.8-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6600
Comment 2 steve_garnier 2025-09-25 15:39:30 UTC
(In reply to Akseli Lahtinen from comment #1)
> Isn't this issue with emacs, not kwin?
> 
> Anyway, I can't reproduce this, I can resize emacs just fine. Might be
> already fixed in future versions.
> Closing this for now.
> 
> Operating System: Fedora Linux 42
> KDE Plasma Version: 6.5.80
> KDE Frameworks Version: 6.19.0
> Qt Version: 6.9.2
> Kernel Version: 6.16.8-200.fc42.x86_64 (64-bit)
> Graphics Platform: Wayland
> Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
> Memory: 16 GiB of RAM (15.5 GiB usable)
> Graphics Processor: AMD Radeon RX 6600

On my system, the problem is NOT with emacs, since it works fine in X11 and fails in Wayland.  
It is good to know that it will eventually work in Wayland in the future, but when?  
How long do I have to wait for this fix to trickle down into Kubuntu?  (The question is rhetorical.)
Comment 3 steve_garnier 2025-09-25 15:59:28 UTC
Created attachment 185269 [details]
attachment-1927278-0.html

 Hi, Nate.  Emacs window resizing works fine in X11 and fails in Wayland as reported.  I don't think that makes this an Emacs bug. Since you can't reproduce it in a later version of Wayland, I guess I just need to wait for a future Wayland version.Thanks for looking into this.Steve 
    On Thursday, September 25, 2025 at 04:04:59 AM CDT, Akseli Lahtinen <bugzilla_noreply@kde.org> wrote:  
 
 https://bugs.kde.org/show_bug.cgi?id=509871

Akseli Lahtinen <akselmo@akselmo.dev> changed:

          What    |Removed                    |Added
----------------------------------------------------------------------------
        Resolution|---                        |FIXED
                CC|                            |akselmo@akselmo.dev
            Status|REPORTED                    |RESOLVED

--- Comment #1 from Akseli Lahtinen <akselmo@akselmo.dev> ---
Isn't this issue with emacs, not kwin?

Anyway, I can't reproduce this, I can resize emacs just fine. Might be already
fixed in future versions.
Closing this for now.

Operating System: Fedora Linux 42
KDE Plasma Version: 6.5.80
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2
Kernel Version: 6.16.8-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6600