Set window class to window name

This commit is contained in:
elkowar 2022-05-26 13:17:11 +02:00
parent 00ff1dc492
commit 77adfbca6b
No known key found for this signature in database
GPG key ID: E321AD71B1D1F27F

View file

@ -317,11 +317,10 @@ impl App {
None, None,
)?; )?;
root_widget.style_context().add_class(&window_name.to_string());
let monitor_geometry = get_monitor_geometry(monitor.or(window_def.monitor_number))?; let monitor_geometry = get_monitor_geometry(monitor.or(window_def.monitor_number))?;
let eww_window = initialize_window(monitor_geometry, root_widget, window_def, window_scope)?; let eww_window = initialize_window(monitor_geometry, root_widget, window_def, window_scope)?;
eww_window.gtk_window.style_context().add_class(&window_name.to_string());
// initialize script var handlers for variables that where not used before opening this window. // initialize script var handlers for variables that where not used before opening this window.
// TODO maybe this could be handled by having a track_newly_used_variables function in the scope tree? // TODO maybe this could be handled by having a track_newly_used_variables function in the scope tree?