subhra74 / xdm

Powerfull download accelerator and video downloader
https://xtremedownloadmanager.com/
GNU General Public License v2.0
6.79k stars 1.1k forks source link

Add window properties to XDM #131

Open UtkarshVerma opened 4 years ago

UtkarshVerma commented 4 years ago

Checklist

Description

Currently, XDM does not have any window properties associated with it which makes it hard to use it with i3wm since the popups and the windows take up full-screen width and height when they open in floating windows.

Here are the window properties:

$ xprop
_NET_WM_DESKTOP(CARDINAL) = 0
WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
_NET_WM_VISIBLE_NAME(UTF8_STRING) = "<span foreground='transparent'> </span>"
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_OL_DECOR_DEL(ATOM) = _OL_DECOR_HEADER, _OL_DECOR_RESIZE, _OL_DECOR_CLOSE
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x26, 0x0, 0x0, 0x0
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0xff, 0x2, 0xc0, 0x6, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0
XdndAware(ATOM) = BITMAP
_NET_FRAME_EXTENTS(CARDINAL) = 2, 2, 6, 2
_NET_WM_ICON(CARDINAL) =        Icon (32 x 32):

                       ░░               
                    ░▒▒▒▒▒▒▒            
                  ░▒░░▒▒▒▒▒▒▒▒          
                 ░▒░░░▒▒▒▒▒▒▒▒▒         
           ░▒▒▒▒▒▒░░  ▒▒▒▒▒▒▒░▒▒        
           ▒▒▒▒▒▒░▒  ░    ▒▒▒▒▓▒        
           ▒▒▒▒▓▒▒░  ░    ▒▒▒▒▒▒▓▒▒▒░   
           ▒▒▒▒▓▒▒░ ░░    ▒▒▒▒▒▒▒▒▒▒▒   
         ░░░░░░░░░░░░░    ░░░ ░░░░░░░░  
         ░░░░░░░░░░░░░    ░░ ░ ░░░░░░░░ 
         ░░░░░░░░░░░░░    ░░░░░░░░░░░░░ 
         ░░░░░░░░░░░░░    ░░░░░░░░░░░░░ 
         ░░░░░░░░░░░░░    ░░░░░░░░░░░░░ 
         ▒░░░░░░░░░░░▒    ▒░░░░░░░░░░░░ 
         ▒░░░░░░░░░░░▒    ▒░░░░░░░░░░░░ 
         ▒▒▒▒▒▒▒▒▒▒▒▒▒    ▒▒▒▒▒▒▒▒▒▒▒▒░ 
         ▒▓▓▓▓▓▓▓▓▓▓▓▓ ░  ▓▓▒▓▒▒▒▒▒▒▓▓▒ 
         ▓▓▓▓▓▓▓▓▓▓▓▓▓ ░░ ▓▓▓▓▒▒▓▓▒▓▓▓▒ 
         ▓▓▓▓▓▓▓▓▓▒▒▒░░░░ ░░░░▒▓▓▒▒▓▓▓▒ 
         ▓▓▓▓▓▓▓▓▓▓▒▒░░░ ░░░░▒▒▓▓▓▒▓▓▓▒ 
         ▓▓▓▓▓▓▓▓▓▓▒▒▒▒░░░░░░▓▒▒▒▒▒▓▓▓▒ 
         ▓▓▓▓▓▓▓▓▓▓▓░▒▒░░░░░▓▓▒▓▒▓▓▓▓▓▒ 
         ▓▓▓▓▓▓▓▓▓▓▓▒▒░░░░░▒▓▓▓▒▓▓▓▓▒▓▒ 
         ▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░▓▓▓▓▓▓▓▓▓▓▓▒ 
         ▓▓▓▓▓▓▓▓▓▓▓▒▒░░░░▒▒▓▓▒▒▒▒▓▓▓▓▒ 
         ▒▓▓▓▓▓▓▓▓▓▓▓▓▒░░▒▓▒▓▒▒▒▒▒▒▒▓▓░ 
         ░░▒▒▒▒▒▒▒▒▒▒▒▒░░▒▒▒▒▒▒▒▒▒▒▒▒░  
                       ░░               

_NET_WM_STATE(ATOM) = _NET_WM_STATE_SKIP_TASKBAR
WM_HINTS(WM_HINTS):
                Client accepts input or input focus: False
                window id # of group leader: 0x6c002fa
WM_TRANSIENT_FOR(WINDOW): window id # 0x0
_NET_WM_PID(CARDINAL) = 3853
WM_CLIENT_MACHINE(STRING) = "inator"
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS
WM_CLASS(STRING) = "java-lang-Thread", "java-lang-Thread"
WM_CLIENT_LEADER(WINDOW): window id # 0x6c00008
_NET_WM_ICON_NAME(UTF8_STRING) = "Java"
WM_ICON_NAME(STRING) = "Java"
_NET_WM_NAME(UTF8_STRING) = " "
WM_NAME(STRING) = " "
WM_NORMAL_HINTS(WM_SIZE_HINTS):
                user specified location: 760, 435
                program specified location: 760, 435
                program specified size: 400 by 210
                window gravity: NorthWest

This is how XDM runs with i3wm. Images

If window properties could be implemented in XDM, then fixing this behaviour would be trivial for me using i3wm's config.

subhra74 commented 4 years ago

I will check, currently its all handled by java swing, will check if I can add properties using JNA