diff options
author | fluxgen <fluxgen> | 2003-06-25 12:01:23 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-06-25 12:01:23 (GMT) |
commit | 95122e911f63969ebc88cd3b47a0810636b9fc17 (patch) | |
tree | 632a9f6b58ebce86f23bfab4d75dde9bc38ed044 | |
parent | 5a12f82a1e5c46eb523efad68fa9cb58da2f3168 (diff) | |
download | fluxbox-95122e911f63969ebc88cd3b47a0810636b9fc17.zip fluxbox-95122e911f63969ebc88cd3b47a0810636b9fc17.tar.bz2 |
setting class hint to fbrun, FbRun
-rw-r--r-- | util/fbrun/FbRun.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc index 334414b..9c4d1d5 100644 --- a/util/fbrun/FbRun.cc +++ b/util/fbrun/FbRun.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: FbRun.cc,v 1.12 2003/06/24 10:22:42 fluxgen Exp $ | 22 | // $Id: FbRun.cc,v 1.13 2003/06/25 12:01:23 fluxgen Exp $ |
23 | 23 | ||
24 | #include "FbRun.hh" | 24 | #include "FbRun.hh" |
25 | 25 | ||
@@ -58,6 +58,14 @@ FbRun::FbRun(int x, int y, size_t width): | |||
58 | // setting nomaximize in local resize | 58 | // setting nomaximize in local resize |
59 | resize(width, m_font.height()); | 59 | resize(width, m_font.height()); |
60 | FbTk::EventManager::instance()->registerEventHandler(*this, m_win.window()); | 60 | FbTk::EventManager::instance()->registerEventHandler(*this, m_win.window()); |
61 | // setup class name | ||
62 | XClassHint *class_hint = XAllocClassHint(); | ||
63 | if (class_hint == 0) | ||
64 | throw string("Out of memory"); | ||
65 | class_hint->res_name = "fbrun"; | ||
66 | class_hint->res_class = "FbRun"; | ||
67 | XSetClassHint(m_display, m_win.window(), class_hint); | ||
68 | XFree(class_hint); | ||
61 | } | 69 | } |
62 | 70 | ||
63 | 71 | ||