You are not logged in.

#1 2020-08-23 21:15:56

ntsanov
Member
Registered: 2020-08-23
Posts: 2

[SOLVED] DWM unwanted floating window

Ghidra seems to start always floating and I can't seem to figure out why.

First it showed only gray window. Found out that java does that with tiling wm and had to add this to my init:

export _JAVA_AWT_WM_NONREPARENTING=1

Now it always starts floating. Tried adding to my config.h:

   
/* class      instance    title       tags mask     isfloating   monitor */
{ "Ghidra",  NULL,       NULL,       0,          0,           -1 },

but it seems to have no effect at all. I can of course manually toggle it to tiling but is quite annoying me to be honest

dwm - 6.2 with fullgaps patch

Anybody has any clue why is that happening ?

Last edited by ntsanov (2020-08-24 06:46:50)

Offline

#2 2020-08-23 23:23:14

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,515
Website

Re: [SOLVED] DWM unwanted floating window

This is a common (and really annoying) behavior for Java apps.  They adjust their own window size after mapping their top level window (thus undoing or overriding any window manager positioning).  In this case, you can specify a different default position and geometry (on line 22 of ~/.ghidra/.ghidra_9.1_DEV/FrontEndTool.xml after running the program at least once), but I don't know of any way to make it honor the positioning set by sane window managers.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2020-08-24 06:43:36

ntsanov
Member
Registered: 2020-08-23
Posts: 2

Re: [SOLVED] DWM unwanted floating window

Thank you for the reply. That makes sense I guess, now that I think about it, the loading screen is properly tiled but after loading is done it becomes floating. I agree about the annoying part, though I guess in that case there isn't much to be done

Offline

#4 2020-08-24 11:53:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,515
Website

Re: [SOLVED] DWM unwanted floating window

It is possible to patch dwm to force the window back into tilining, but you'd then either need to make that code specific to this window - or java windows in general, or just force everything to always be tiled.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB