Bug 408746 - emacs full screen doesn't work
Summary: emacs full screen doesn't work
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 5.16.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://debbugs.gnu.org/cgi/bugreport...
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-15 17:20 UTC by Konstantin Kharlamov
Modified: 2019-06-17 07:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
xprop on Emacs -Q (7.13 KB, text/plain)
2019-06-15 18:06 UTC, Konstantin Kharlamov
Details
xwininfo on Emacs -Q (576 bytes, text/plain)
2019-06-15 18:07 UTC, Konstantin Kharlamov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Kharlamov 2019-06-15 17:20:34 UTC
SUMMARY

Pressing kwin's "full screen" button doesn't work with Emacs. This was found as part of research on this issue https://github.com/kwin-scripts/kwin-tiling/issues/161

STEPS TO REPRODUCE
1. Start `emacs -Q`
2. Press the button that you have bound to "make window fullscreen" kwin action

OBSERVED RESULT

Nothing happens.

EXPECTED RESULT

Emacs should get opened to full screen.

SOFTWARE/OS VERSIONS
Window API: X11
KDE Plasma Version: 5.16
KDE Frameworks Version: 5.59
Qt Version: 5.12.3

ADDITIONAL INFORMATION

This works fine on i3wm, so this looks like kwin issue.
Comment 1 Martin Flöser 2019-06-15 18:04:01 UTC
Please provide output of xprop and xwininfo of emacs. Emacs is known to be not standard compliant, it's a tricky application.
Comment 2 Konstantin Kharlamov 2019-06-15 18:06:54 UTC
Created attachment 120894 [details]
xprop on Emacs -Q
Comment 3 Konstantin Kharlamov 2019-06-15 18:07:18 UTC
Created attachment 120895 [details]
xwininfo on Emacs -Q
Comment 4 Konstantin Kharlamov 2019-06-15 18:07:39 UTC
(In reply to Martin Flöser from comment #1)
> Please provide output of xprop and xwininfo of emacs. Emacs is known to be
> not standard compliant, it's a tricky application.

Thanks, attached
Comment 5 Konstantin Kharlamov 2019-06-15 18:09:13 UTC
(In reply to Konstantin Kharlamov from comment #4)
> (In reply to Martin Flöser from comment #1)
> > Please provide output of xprop and xwininfo of emacs. Emacs is known to be
> > not standard compliant, it's a tricky application.
> 
> Thanks, attached

I did that with kwin-tiling extension enabled, is that okay? I can redo them if not.
Comment 6 Martin Flöser 2019-06-15 20:03:30 UTC
What's your screen resolution?
Comment 7 Konstantin Kharlamov 2019-06-15 20:06:10 UTC
(In reply to Martin Flöser from comment #6)
> What's your screen resolution?

    $ xrandr -q
    Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
    VGA-0 disconnected (normal left inverted right x axis y axis)
    LVDS connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
    1366x768      60.07*+
    1280x720      59.97
    1152x768      59.95
    1024x768      59.95
    800x600       59.96
    848x480       59.94
    720x480       59.94
    640x480       59.94
    HDMI-0 disconnected (normal left inverted right x axis y axis)
Comment 8 Martin Flöser 2019-06-16 07:08:46 UTC
Given the resize increment provided by emacs (8x17) it is impossible to fullscreens the window with the used resolution. 1326 doesn't divide by 8 and 681 doesn't divide by 17.

Previous experience was that we cannot resize to not allowed values as applications resize back and then we are in a resize loop.

I'm sorry I don't see a bug here. We are constraint by the resize increment emacs provides.
Comment 9 Konstantin Kharlamov 2019-06-16 10:21:32 UTC
(In reply to Martin Flöser from comment #8)
> Given the resize increment provided by emacs (8x17) it is impossible to
> fullscreens the window with the used resolution. 1326 doesn't divide by 8
> and 681 doesn't divide by 17.
> 
> Previous experience was that we cannot resize to not allowed values as
> applications resize back and then we are in a resize loop.
> 
> I'm sorry I don't see a bug here. We are constraint by the resize increment
> emacs provides.

But why then fullscreen with Emacs works on i3?
Comment 10 Christoph Feck 2019-06-16 13:11:12 UTC
If it works on i3, then i3 ignores the resize increments. In other words, it ignores this part of the X11 window manager standard.
Comment 11 Konstantin Kharlamov 2019-06-16 21:54:37 UTC
FTR, I sent a patch for this bug to Emacs https://debbugs.gnu.org/cgi/bugreport.cgi?bug=36250