hide window from MS windows taskbar

前端 未结 3 1282
别跟我提以往
别跟我提以往 2021-01-06 11:49

Using pyGtk I created a window without decoration. The Window is hidden from task bar and top of all windows. On linux it works fine, but on MS Windows window sometimes it h

3条回答
  •  天涯浪人
    2021-01-06 12:19

    Win32 solution provided in the other answer is not very easy and it does not play well with the GtkWindow::show method. A simple solution now in Gtk3 is:

    win->set_type_hint(Gdk::WindowTypeHint::WINDOW_TYPE_HINT_UTILITY); //This works
    win->set_skip_taskbar_hint(); //This does not guarantee to work
    

提交回复
热议问题