Skip to content

Commit

Permalink
expose our window manager name ("_NET_WM_NAME" on the ewmh window) as…
Browse files Browse the repository at this point in the history
… "Xpra" and allow this value to be overriden using the "XPRA_NET_WM_NAME" env var

git-svn-id: https://xpra.org/svn/Xpra/trunk@8025 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 1, 2014
1 parent ad7390d commit 5d15119
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/xpra/x11/gtk_x11/wm.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import gtk
import gobject
import os

from xpra.gtk_common.error import xsync, xswallow
import xpra.x11.gtk_x11.selection
Expand Down Expand Up @@ -33,6 +34,8 @@
NotifyPointerRoot = constants["NotifyPointerRoot"]
NotifyDetailNone = constants["NotifyDetailNone"]

XPRA_NET_WM_NAME = os.environ.get("XPRA_NET_WM_NAME", "Xpra")


def wm_check(display, upgrading=False):
#there should only be one screen... but let's check all of them
Expand Down Expand Up @@ -426,11 +429,7 @@ def _setup_ewmh_window(self):
"window", self._ewmh_window)
self.root_set("_NET_SUPPORTING_WM_CHECK",
"window", self._ewmh_window)

# Other global actions:

def _make_window_pseudoclient(self, win):
"Used by PseudoclientWindow, only."
win.set_screen(self._alt_display.get_default_screen())
self.root_set("_NET_WM_NAME",
"utf8", unicode(XPRA_NET_WM_NAME))

gobject.type_register(Wm)

0 comments on commit 5d15119

Please sign in to comment.