summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-08-04 15:23:24 (GMT)
committerfluxgen <fluxgen>2002-08-04 15:23:24 (GMT)
commit4f6e9bc87ea91413e561633fd25226aeb3ea13ad (patch)
tree0dd1912fd6c53f02b0101c9614c4e6dc70191ac0 /src
parentcd9424a8c2f843fffcf112ac68c2b75b9fb13491 (diff)
downloadfluxbox_lack-4f6e9bc87ea91413e561633fd25226aeb3ea13ad.zip
fluxbox_lack-4f6e9bc87ea91413e561633fd25226aeb3ea13ad.tar.bz2
moved and changed name on width function in IconBarObj
Diffstat (limited to 'src')
-rw-r--r--src/IconBar.cc40
1 files changed, 21 insertions, 19 deletions
diff --git a/src/IconBar.cc b/src/IconBar.cc
index c9eb55f..3ed4f54 100644
--- a/src/IconBar.cc
+++ b/src/IconBar.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: IconBar.cc,v 1.14 2002/07/23 17:11:58 fluxgen Exp $ 22// $Id: IconBar.cc,v 1.15 2002/08/04 15:23:24 fluxgen Exp $
23 23
24#include "IconBar.hh" 24#include "IconBar.hh"
25#include "i18n.hh" 25#include "i18n.hh"
@@ -37,6 +37,26 @@ IconBarObj::~IconBarObj() {
37 37
38} 38}
39 39
40//---------- getIconWidth ------------
41// will return the width of an icon
42// window
43//------------------------------------
44unsigned int IconBarObj::width() const {
45 Window root;
46
47 unsigned int width, height;
48 unsigned int border_width, depth; //not used
49 int x, y; //not used
50
51 Display *m_display = Fluxbox::instance()->getXDisplay();
52
53 XGetGeometry(m_display, m_iconwin, &root, &x, &y,
54 &width, &height, &border_width, &depth);
55
56 return width;
57}
58
59
40IconBar::IconBar(BScreen *scrn, Window parent): 60IconBar::IconBar(BScreen *scrn, Window parent):
41m_screen(scrn), 61m_screen(scrn),
42m_parent(parent) 62m_parent(parent)
@@ -345,21 +365,3 @@ IconBarObj *IconBar::findIcon(FluxboxWindow *fluxboxwin) {
345 return 0; 365 return 0;
346} 366}
347 367
348//---------- getIconWidth ------------
349// will return the width of an icon
350// window
351//------------------------------------
352unsigned int IconBarObj::getWidth() {
353 Window root;
354
355 unsigned int width, height;
356 unsigned int border_width, depth; //not used
357 int x, y; //not used
358
359 Display *m_display = Fluxbox::instance()->getXDisplay();
360
361 XGetGeometry(m_display, m_iconwin, &root, &x, &y,
362 &width, &height, &border_width, &depth);
363
364 return width;
365}