aboutsummaryrefslogtreecommitdiff
path: root/src/ui/windowsystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/windowsystem.cpp')
-rw-r--r--src/ui/windowsystem.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ui/windowsystem.cpp b/src/ui/windowsystem.cpp
index 72746434d..4b66ae025 100644
--- a/src/ui/windowsystem.cpp
+++ b/src/ui/windowsystem.cpp
@@ -1,6 +1,7 @@
/***************************************************************************
* Based on Licq *
* Copyright (C) 2006-2009 Licq developers *
+ * Copyright (C) 2011 Ilya Kotov *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
@@ -135,6 +136,17 @@ void WindowSystem::changeWinSticky(WId win, bool stick)
SubstructureRedirectMask | SubstructureNotifyMask, &xev);
}
+void WindowSystem::setWinHint(WId win, const char *res_name, const char *res_class)
+{
+ Display* dsp = QX11Info::display();
+ XClassHint hint;
+ hint.res_name = strdup(res_name);
+ hint.res_class = strdup(res_class);
+ XSetClassHint(dsp, win, &hint);
+ free(hint.res_name);
+ free(hint.res_class);
+}
+
unsigned char* WindowSystem::getWindowProperty(WId win, const char* prop)
{
Display* dsp = QX11Info::display();