Set _NET_STARTUP_ID before the window is mapped

This commit is contained in:
Kovid Goyal
2017-11-23 20:02:52 +05:30
parent d9b0b5c08f
commit fe214f43cb
2 changed files with 9 additions and 5 deletions

View File

@@ -12,11 +12,11 @@ from .borders import load_borders_program
from .boss import Boss
from .cli import create_opts, option_parser
from .config import initial_window_size, load_cached_values, save_cached_values
from .constants import is_macos, is_wayland, logo_data_file, glfw_path
from .constants import glfw_path, is_macos, is_wayland, logo_data_file
from .fast_data_types import (
change_wcwidth, create_os_window, glfw_init, glfw_terminate,
install_sigchld_handler, set_default_window_icon, set_logical_dpi,
set_options
set_options, show_window
)
from .fonts.box_drawing import set_scale
from .utils import (
@@ -43,8 +43,9 @@ def run_app(opts, args):
set_options(opts, is_wayland, args.debug_gl)
load_cached_values()
w, h = initial_window_size(opts)
window_id = create_os_window(w, h, encode_wm_class(args.name, args.cls), True, load_all_shaders)
window_id = create_os_window(w, h, encode_wm_class(args.name, args.cls), False, load_all_shaders)
startup_ctx = init_startup_notification(window_id)
show_window(window_id)
if not is_wayland and not is_macos: # no window icons on wayland
with open(logo_data_file, 'rb') as f:
set_default_window_icon(f.read(), 256, 256)