all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* PGTK build starts at random position (WSLG)
@ 2022-11-25 17:15 Angelo Graziosi
  2022-11-27 11:11 ` Po Lu
  0 siblings, 1 reply; 2+ messages in thread
From: Angelo Graziosi @ 2022-11-25 17:15 UTC (permalink / raw)
  To: emacs-devel@gnu.org

Recently there was a Windows update that back-ported WSLG (https://github.com/microsoft/wslg) to Win10 so one can run GUI app in WSL (Ubuntu 22.04 here)!

I tried my Emacs master binaries (built on GNU/Linux Mint, GTK3+cairo) and they work (after the installation of some missing packages). I did directly the same build on WSL. I used also the same .emacs.d directory I have on Mint! Obviously it looks a bit different: there is no Emacs icon on the upper left corner (near the window title); the icon on the task bar is a little penguin over the Emacs icon..)

Now I found this article: https://emacsredux.com/blog/2021/12/19/using-emacs-on-windows-11-with-wsl2 so tried to build a PGTK version and also these binaries work but when I start this toolkit of Emacs, it starts at random even if I have this code in the init.el file:

(setq default-frame-alist
      '(
        (width . 120) ; character
        (height . 54) ; lines
        (left . 835); pixel
        (top  .   0); pixel
        (font . "Monospace-11") ; font
        ))

Notice that I use more or less the same code for the Windows, macOS and GNU/Linux builds (just the font or the left parameter changes) and it is respected. Not by PGTK build. In short, PGTK seems to ignore the top and left statements.

Another issue is that I cannot copy/paste (C-w, M-w) from pgtk-Emacs elsewhere.. (I had to write manually the above code in this email).

Do you know if these are PGTK bugs? or is there some work around?

TIA,
 Angelo.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PGTK build starts at random position (WSLG)
  2022-11-25 17:15 PGTK build starts at random position (WSLG) Angelo Graziosi
@ 2022-11-27 11:11 ` Po Lu
  0 siblings, 0 replies; 2+ messages in thread
From: Po Lu @ 2022-11-27 11:11 UTC (permalink / raw)
  To: Angelo Graziosi; +Cc: emacs-devel@gnu.org

Angelo Graziosi <angelo.g0@libero.it> writes:

> Recently there was a Windows update that back-ported WSLG
> (https://github.com/microsoft/wslg) to Win10 so one can run GUI app in
> WSL (Ubuntu 22.04 here)!
>
> I tried my Emacs master binaries (built on GNU/Linux Mint, GTK3+cairo)
> and they work (after the installation of some missing packages). I did
> directly the same build on WSL. I used also the same .emacs.d
> directory I have on Mint! Obviously it looks a bit different: there is
> no Emacs icon on the upper left corner (near the window title); the
> icon on the task bar is a little penguin over the Emacs icon..)
>
> Now I found this article:
> https://emacsredux.com/blog/2021/12/19/using-emacs-on-windows-11-with-wsl2
> so tried to build a PGTK version and also these binaries work but when
> I start this toolkit of Emacs, it starts at random even if I have this
> code in the init.el file:
>
> (setq default-frame-alist
>       '(
>         (width . 120) ; character
>         (height . 54) ; lines
>         (left . 835); pixel
>         (top  .   0); pixel
>         (font . "Monospace-11") ; font
>         ))
>
> Notice that I use more or less the same code for the Windows, macOS
> and GNU/Linux builds (just the font or the left parameter changes) and
> it is respected. Not by PGTK build. In short, PGTK seems to ignore the
> top and left statements.

That is definitely not a bug in the PGTK build, because the Wayland
protocol doesn't let it change the absolute position of its toplevels at
all.

> Another issue is that I cannot copy/paste (C-w, M-w) from pgtk-Emacs
> elsewhere.. (I had to write manually the above code in this email).
>
> Do you know if these are PGTK bugs? or is there some work around?

That is almost certainly a bug in WSL (which is in general of very low
quality; you ought to stay far away from it.)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-27 11:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-25 17:15 PGTK build starts at random position (WSLG) Angelo Graziosi
2022-11-27 11:11 ` Po Lu

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.