You are not logged in.

#1 2021-05-07 11:33:12

Equiphract
Member
Registered: 2021-05-04
Posts: 11

Dropdown menus in Java applications don't work with DWM and X

Whenever I click on a dropdown menu it opens just as expected but as soon as I let go of the
mouse button the menu closes again which leaves me unable to access the elements inside
the dropdown. This is quite impractical as I need to develop Java programs which because
of this issue I cannot fully test.

My window manager is DWM and I am running X11 as display server.

Is there a known fix for this?

Last edited by Equiphract (2021-05-07 11:33:27)

Offline

#2 2021-05-09 12:51:38

lmn
Member
Registered: 2021-05-09
Posts: 93
Website

Re: Dropdown menus in Java applications don't work with DWM and X

Have you tried setting

_JAVA_AWT_WM_NONREPARENTING=1

as described in the wiki?

Offline

#3 2021-05-09 13:31:32

Equiphract
Member
Registered: 2021-05-04
Posts: 11

Re: Dropdown menus in Java applications don't work with DWM and X

lmn wrote:

Have you tried setting

_JAVA_AWT_WM_NONREPARENTING=1

as described in the wiki?


I have not because I figured this variable would fix something related to AWT whereas I have problems with JavaFX applications.

Nevertheless, I tried it out now:

I put

export _JAVA_AWT_WM_NONREPARENTING=1

in my .xinitrc before the WM is launched and then started DWM. Then I made sure the environment variable was set by running export.

It didn't fix my problem.

I also tried

export AWT_TOOLKIT=MToolkit

Did not work either...

This is my .xinitrc right now:

#!/bin/sh

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

~/.fehbg &
slstatus &
xbindkeys &
export _JAVA_AWT_WM_NONREPARENTING=1
export AWT_TOOLKIT=MToolkit
exec dbus-launch dwm

Last edited by Equiphract (2021-05-09 13:33:59)

Offline

Board footer

Powered by FluxBB