all repos — fluxbox @ 92fbd4b4c5404c0d8c62e9778327f8ddde78052d

custom fork of the fluxbox windowmanager

raise and lower functions
fluxgen fluxgen
commit

92fbd4b4c5404c0d8c62e9778327f8ddde78052d

parent

a7dc6a68c91bafbc59e2239ef89e546831febcfd

2 files changed, 13 insertions(+), 4 deletions(-)

jump to
M src/Basemenu.ccsrc/Basemenu.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Basemenu.cc,v 1.29 2002/09/09 10:01:41 fluxgen Exp $ +// $Id: Basemenu.cc,v 1.30 2002/09/10 10:50:04 fluxgen Exp $ //use GNU extensions #ifndef _GNU_SOURCE

@@ -160,7 +160,7 @@

} -Basemenu::~Basemenu(void) { +Basemenu::~Basemenu() { XUnmapWindow(m_display, menu.window); if (shown && shown->windowID() == windowID())

@@ -254,8 +254,15 @@

return menuitems.size(); } +void Basemenu::raise() { + XRaiseWindow(BaseDisplay::getXDisplay(), windowID()); +} -void Basemenu::update(void) { +void Basemenu::lower() { + XLowerWindow(BaseDisplay::getXDisplay(), windowID()); +} + +void Basemenu::update() { I18n *i18n = I18n::instance(); if (i18n->multibyte()) {
M src/Basemenu.hhsrc/Basemenu.hh

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Basemenu.hh,v 1.16 2002/08/04 15:55:13 fluxgen Exp $ +// $Id: Basemenu.hh,v 1.17 2002/09/10 10:48:44 fluxgen Exp $ #ifndef BASEMENU_HH #define BASEMENU_HH

@@ -63,6 +63,8 @@ inline void setInternalMenu() { internal_menu = true; }

inline void setAlignment(Alignment a) { m_alignment = a; } inline void setTorn() { torn = true; } inline void removeParent() { if (internal_menu) m_parent = 0; } + void raise(); + void lower(); /** @name event handlers */