noctuid / tdrop

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

Title bar not hidden #432

Open lennartack opened 2 months ago

lennartack commented 2 months ago

I'm on Debian 12.5 and Mate 1.26. When I run tdrop it creates a normal window with a title bar and an entry in the window list.

I want the title bar to be removed and the window to not appear in the window list on mate-panel.

$ tdrop -a --debug alacritty
2024-05-03 23:00:22 Debug window manager: (Marco)
2024-05-03 23:00:22 Debug command: toggle alacritty
2024-05-03 23:00:22 Debug Clearing stored wid from /tmp/tdrop_lennart_:0/wids/alacritty since wid 113246212 no longer exists
2024-05-03 23:00:22 Debug pid: 1044250
2024-05-03 23:00:22 Debug blacklist: 58720260
2024-05-03 23:00:22 Debug wids: 113246212
2024-05-03 23:00:22 Debug picked wid: 113246212
$ tdrop --wm=marco --debug alacritty
2024-05-03 23:03:46 Debug command: toggle alacritty
2024-05-03 23:03:46 Debug Clearing stored wid from /tmp/tdrop_lennart_:0/wids/alacritty since wid 113246212 no longer exists
2024-05-03 23:03:46 Debug pid: 1044988
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  15 (X_QueryTree)
  Resource id in failed request:  0x2cbcfad
  Serial number of failed request:  990
  Current serial number in output stream:  990
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  20 (X_GetProperty)
  Resource id in failed request:  0x2cbd10e
  Serial number of failed request:  293
  Current serial number in output stream:  293
2024-05-03 23:03:46 Debug blacklist: 58720260
2024-05-03 23:03:46 Debug wids: 113246212
2024-05-03 23:03:46 Debug picked wid: 113246212
noctuid commented 2 months ago

I want the title bar to be removed and the window to not appear in the window list on mate-panel.

Is that something you can do normally without tdrop and how if so?

lennartack commented 2 months ago

@noctuid Thanks for your reply.

I want the title bar to be removed and the window to not appear in the window list on mate-panel.

Is that something you can do normally without tdrop and how if so?

I think so. Other dropdown terminals such as guake do it. I found a way to remove the title bar with tdrop:

tdrop -h "50%" -P 'xprop -id $(xdotool getactivewindow) -format _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS 2; xdotool windowmove $(xdotool getactivewindow) 0 0' -s dropdown alacritty

But it doesn't work great. As you can see I need to move the window again to the top just after removing the title bar, which is visible.

Example of desired behaviour with guake: Screenshot at 2024-05-05 19-59-35

tdrop default on my system: Screenshot at 2024-05-05 20-01-17 So this is expected behaviour?