parent
0b2a139f98
commit
ef24bce5d9
2 changed files with 18 additions and 1 deletions
|
|
@ -320,6 +320,7 @@ xcb::atoms_struct! {
|
|||
win_type_normal => b"_NET_WM_WINDOW_TYPE_NORMAL",
|
||||
win_type_menu => b"_NET_WM_WINDOW_TYPE_MENU",
|
||||
win_type_tooltip => b"_NET_WM_WINDOW_TYPE_TOOLTIP",
|
||||
win_type_dnd => b"_NET_WM_WINDOW_TYPE_DND",
|
||||
motif_wm_hints => b"_MOTIF_WM_HINTS" only_if_exists = false,
|
||||
mime1 => b"text/plain" only_if_exists = false,
|
||||
mime2 => b"blah/blah" only_if_exists = false,
|
||||
|
|
@ -1787,6 +1788,15 @@ fn popup_heuristics() {
|
|||
&[connection.atoms.win_type_tooltip],
|
||||
);
|
||||
f.map_as_popup(&mut connection, chromium_tooltip);
|
||||
|
||||
let discord_dnd = connection.new_window(connection.root, 20, 138, 48, 48, true);
|
||||
connection.set_property(
|
||||
discord_dnd,
|
||||
x::ATOM_ATOM,
|
||||
connection.atoms.win_type,
|
||||
&[connection.atoms.win_type_dnd],
|
||||
);
|
||||
f.map_as_popup(&mut connection, discord_dnd);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue