diff options
author | rathnor <rathnor> | 2003-07-25 11:17:41 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-07-25 11:17:41 (GMT) |
commit | 1487798293883177e861e6fe533e15b50c9027ef (patch) | |
tree | 3e761263f16b37cebf222fbf61edfc69fa56c1f6 /util/fbrun/FbRun.cc | |
parent | ac7edef9ad73818435420479a0dfa9c5ed517a79 (diff) | |
download | fluxbox-1487798293883177e861e6fe533e15b50c9027ef.zip fluxbox-1487798293883177e861e6fe533e15b50c9027ef.tar.bz2 |
fix fbrun on multiple screens
Diffstat (limited to 'util/fbrun/FbRun.cc')
-rw-r--r-- | util/fbrun/FbRun.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc index 6c7a53a..09f6075 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.14 2003/07/10 10:18:08 fluxgen Exp $ | 22 | // $Id: FbRun.cc,v 1.15 2003/07/25 11:17:41 rathnor Exp $ |
23 | 23 | ||
24 | #include "FbRun.hh" | 24 | #include "FbRun.hh" |
25 | 25 | ||
@@ -41,10 +41,10 @@ | |||
41 | using namespace std; | 41 | using namespace std; |
42 | FbRun::FbRun(int x, int y, size_t width): | 42 | FbRun::FbRun(int x, int y, size_t width): |
43 | m_font("fixed"), | 43 | m_font("fixed"), |
44 | m_win((int)0, x, y, //screen num and position | 44 | m_display(FbTk::App::instance()->display()), |
45 | m_win((int)DefaultScreen(m_display), x, y, //screen num and position | ||
45 | width + m_bevel, m_font.height() + 2, // size | 46 | width + m_bevel, m_font.height() + 2, // size |
46 | KeyPressMask|ExposureMask), // eventmask | 47 | KeyPressMask|ExposureMask), // eventmask |
47 | m_display(FbTk::App::instance()->display()), | ||
48 | m_bevel(4), | 48 | m_bevel(4), |
49 | m_gc(DefaultGC(m_display, DefaultScreen(m_display))), | 49 | m_gc(DefaultGC(m_display, DefaultScreen(m_display))), |
50 | m_end(false), | 50 | m_end(false), |