Re: [dev] [dwm] Need help about gray windows of Java applications

From: Przemek Dragańczuk <mailing-list_AT_draganczuk.tk>
Date: Wed, 15 May 2019 13:15:43 +0200

I have it in my .xinitrc, .zprofile (.bash_profile) and in my .zshrc
(.bashrc). I can never remember where it should be, so that way I know
it works somewhere.

LG3D was a WM written in Java, which maximises the irony. Java apps
know how to work on it, so they work fine when they think they are
running on it. The issue has something to do with reparenting, (which
I don't know nearly enough about to explain) that some WMs (xfwm4, Gnome
etc.) do the way Java expects, while others (dwm, qtile, LG3D) do it in
a different way (or don't do it at all, I'm not sure).

TL;DR: Java apps are stupid and have to be tricked into thinking
they're on another WM to work.

On 14/05/19 04:37, Enan Ajmain wrote:
> Thanks. It worked.
>
> I've added `wmname LG3D` in xinitrc, but it doesn't work for some
> reason. But I invoked in manually from bash before launching logisim
> and it worked fine. I don't care about xinitrc, because I would have
> liked to use this method only for that one application only anyway.
>
> I have checked the page for wmname in suckless.org and found this
> method listed there. Would you mind explaining what LG3D is and why
> this was chosen as opposed to anything else? And one more thing, if I
> invoke `wmname LG3D` from one bash instance, it would not manipulate
> the other windows, right? I mean, the other windows I open are not
> gonna have wmname property of LG3D, only the logisim window (launched
> from the bash instance where `wmname LG3D` was invoked) would get that
> property, right?
>
> Thanks again for your help,
> Enan Ajmain
>
> On Sun, May 12, 2019 at 7:29 PM Przemek DragaDczuk
> <mailing-list_AT_draganczuk.tk> wrote:
> >
> > In the terminal, as part of your shell's RC file (.bashrc,
> > .zshrc etc.) or in .xinitrc. I have it in a startup script that
> > is executed from .xinitrc when dwm starts.
> > On 12/05/19 06:13, Enan Ajmain wrote:
> > > Where do I run `wmname LG3D`?
> > >
> > > On Sun, May 12, 2019 at 4:41 PM Przemek DragaDczuk
> > > <mailing-list_AT_draganczuk.tk> wrote:
> > > >
> > > > Running `wmname LG3D` should help with that. I've had similar issue and
> > > > that fixed it for me.
> > > > On 12/05/19 03:09, Enan Ajmain wrote:
> > > > > Hi,
> > > > >
> > > > > I need to use logisim, a tool for designing and simulating logic
> > > > > circuits. But the problem is that logisim is built in Java, and due to
> > > > > well-known issue in Java it doesn't launch properly in dwm. I just
> > > > > installed xfce4 and checked that logisim works perfectly fine with it.
> > > > > After moving around in xfce4 for an hour and due to previous usage,
> > > > > I'm thinking of switching back to xfce. I wouldn't even think about it
> > > > > if it was not so difficult to install xfce from source.
> > > > >
> > > > > Anyway, I'd like to keep using dwm, but it doesn't lauch the
> > > > > previously mentioned tool because it was built in Java. I have tried
> > > > > the following solution suggested by ArchWiki, but it doesn't work for
> > > > > logisim. If anyone else has any idea, please let me know.
> > > > >
> > > > > ```
> > > > > export _JAVA_AWT_WM_NONREPARENTING=1
> > > > > ```
> > > > >
> > > > > Thanks,
> > > > > Enan Ajmain
> > > > >
> > > >
> > > > Sent via Migadu.com, world's easiest email hosting
> > > >
> > >
> >
> > Sent via Migadu.com, world's easiest email hosting
> >
>

Sent via Migadu.com, world's easiest email hosting
Received on Wed May 15 2019 - 13:15:43 CEST

This archive was generated by hypermail 2.3.0 : Wed May 15 2019 - 13:24:07 CEST