noctuid / tdrop

A Glorified WM-Independent Dropdown Creator
BSD 2-Clause "Simplified" License
1.12k stars 44 forks source link

tdrop won't float youtube-music-desktop (electron app) or firefox #361

Closed isingasimplesong closed 1 year ago

isingasimplesong commented 2 years ago

I use tdrop on bspwm/sxhkd with this command :

super + z; {a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}
  tdrop -amr -n {a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z} 'current'

it works wonderfully with almost everything, but youtube-music (an electron app basically embedding music.youtube.com) and firefox. Those 2 apps will always show up tiled when unhiding the drop

isingasimplesong commented 2 years ago

addendum : those 2 apps also show up tiled when used with tdrop with fixed coordinates

noctuid commented 2 years ago

Could you provide the xprop output for both?

Note to self: Check that the current command is correctly setting the classname.

isingasimplesong commented 2 years ago

xprop for firefox :

TDROP_NAME(UTF8_STRING) = "tdrop currentf"
_NET_WM_USER_TIME(CARDINAL) = 441679
_NET_WM_DESKTOP(CARDINAL) = 0
WM_STATE(WM_STATE):
        window state: Normal
        icon window: 0x0
_NET_WM_BYPASS_COMPOSITOR(CARDINAL) = 2
WM_HINTS(WM_HINTS):
        Client accepts input or input focus: True
        Initial state is Normal State.
        bitmap id # to use for icon: 0x2000030
        bitmap id # of mask for icon: 0x2000037
        window id # of group leader: 0x2000001
_GTK_THEME_VARIANT(UTF8_STRING) = 
WM_WINDOW_ROLE(STRING) = "browser"
XdndAware(ATOM) = BITMAP
_NET_WM_ICON(CARDINAL) =    Icon (32 x 32):
    (not shown)
    Icon (64 x 64):
    (not shown)
    Icon (24 x 24):
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████
    ████████████████████████████████████████████████

    Icon (128 x 128):
    (not shown)
    Icon (192 x 192):
    (not shown)
    Icon (16 x 16):
    ████████████████████████████████
    ████████████████████████████████
    ████████████████████████████████
    ████████████████████████████████
    ████████████████████████████████
    ████████████████████████████████
    ████████████████████████████████
    ████████████████████████████████
    ████████████████████████████████
    ████████████████████████████████
    ████████████████████████████████
    ████████████████████████████████
    ████████████████████████████████
    ████████████████████████████████
    ████████████████████████████████
    ████████████████████████████████

    Icon (48 x 48):
    (not shown)
    Icon (22 x 22):
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████
    ████████████████████████████████████████████

_NET_WM_OPAQUE_REGION(CARDINAL) = 0, 0, 1144, 1037
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 33554478, 33554479
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x200002d
WM_CLIENT_LEADER(WINDOW): window id # 0x2000001
_NET_WM_PID(CARDINAL) = 1430
WM_LOCALE_NAME(STRING) = "fr_FR.UTF-8"
WM_CLIENT_MACHINE(STRING) = "radium"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
        program specified minimum size: 450 by 120
        program specified maximum size: 16384 by 16384
        program specified base size: 450 by 120
        window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "Navigator", "firefox"
WM_ICON_NAME(COMPOUND_TEXT) = "tdrop won't float youtube-music-desktop (electron app) or firefox · Issue #361 · noctuid/tdrop · GitHub — Mozilla Firefox"
_NET_WM_ICON_NAME(UTF8_STRING) = "tdrop won't float youtube-music-desktop (electron app) or firefox · Issue #361 · noctuid/tdrop · GitHub — Mozilla Firefox"
WM_NAME(COMPOUND_TEXT) = "tdrop won't float youtube-music-desktop (electron app) or firefox · Issue #361 · noctuid/tdrop · GitHub — Mozilla Firefox"
_NET_WM_NAME(UTF8_STRING) = "tdrop won't float youtube-music-desktop (electron app) or firefox · Issue #361 · noctuid/tdrop · GitHub — Mozilla Firefox"

and for youtube-music :

TDROP_NAME(UTF8_STRING) = "tdrop currenty"
_NET_WM_DESKTOP(CARDINAL) = 0
WM_STATE(WM_STATE):
        window state: Normal
        icon window: 0x0
_NET_WM_USER_TIME(CARDINAL) = 734968
WM_NORMAL_HINTS(WM_SIZE_HINTS):
        program specified location: 1323, 39
        program specified maximum size: 2147483647 by 2147483647
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x0, 0x1, 0x0, 0x0
XdndAware(ATOM) = BITMAP
_NET_WM_BYPASS_COMPOSITOR(CARDINAL) = 2
WM_NAME(UTF8_STRING) = "Unknown Attack - YouTube Music"
_NET_WM_NAME(UTF8_STRING) = "Unknown Attack - YouTube Music"
WM_WINDOW_ROLE(STRING) = "browser-window"
WM_CLASS(STRING) = "youtube music", "YouTube Music"
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_PID(CARDINAL) = 4049
WM_CLIENT_MACHINE(STRING) = "radium"
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, _NET_WM_PING, _NET_WM_SYNC_REQUEST
noctuid commented 1 year ago

Thanks, please test with the latest version.