Skip to content

Commit

Permalink
#2841 allow other windows to show on top (use 'TOPLEVEL' instead of '…
Browse files Browse the repository at this point in the history
…POPUP') and set more window hints to ensure the window manager understands that this is just a splashscreen

git-svn-id: https://xpra.org/svn/Xpra/trunk@26973 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 13, 2020
1 parent 5cd1e21 commit b79f175
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/xpra/client/gtk3/splash_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# later version. See the file COPYING for details.

import sys
from gi.repository import Gtk, GLib, Pango
from gi.repository import Gtk, Gdk, GLib, Pango

from xpra import __version__
from xpra.gtk_common.gtk_util import add_close_accel, get_icon_pixbuf
Expand All @@ -22,13 +22,19 @@ class SplashScreen(Gtk.Window):

def __init__(self):
self.exit_code = None
super().__init__(type=Gtk.WindowType.POPUP)
super().__init__(type=Gtk.WindowType.TOPLEVEL)
self.connect("delete_event", self.exit)
title = "Xpra %s" % __version__
self.set_title("Xpra")
self.set_size_request(320, 160)
self.set_position(Gtk.WindowPosition.CENTER)
self.set_decorated(False)
self.set_opacity(0.8)
self.set_accept_focus(False)
self.set_focus_on_map(False)
self.set_skip_pager_hint(True)
self.set_skip_taskbar_hint(True)
self.set_type_hint(Gdk.WindowTypeHint.SPLASHSCREEN)
vbox = Gtk.VBox()
hbox = Gtk.HBox(homogeneous=False)
icon = get_icon_pixbuf("xpra")
Expand Down

0 comments on commit b79f175

Please sign in to comment.