aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-11-01 00:12:53 (GMT)
committerrathnor <rathnor>2003-11-01 00:12:53 (GMT)
commitb6d5b558fe9b490284a3901ed76243f6b4c580b8 (patch)
treede28ed07ceac034724a281cd991b97252016c06a /src
parent08089dd064d626cb6d9f65dd201f6f9be5d5751b (diff)
downloadfluxbox_paul-b6d5b558fe9b490284a3901ed76243f6b4c580b8.zip
fluxbox_paul-b6d5b558fe9b490284a3901ed76243f6b4c580b8.tar.bz2
slit client mapping on restart, surplus menu redraw
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/Menu.cc3
-rw-r--r--src/Slit.cc7
-rw-r--r--src/SlitClient.hh3
3 files changed, 8 insertions, 5 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index ebaea3b..8b4a91e 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Menu.cc,v 1.39 2003/10/06 09:55:36 rathnor Exp $ 25// $Id: Menu.cc,v 1.40 2003/11/01 00:12:53 rathnor Exp $
26 26
27//use GNU extensions 27//use GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -723,7 +723,6 @@ void Menu::drawSubmenu(unsigned int index) {
723 if (! item->submenu()->isVisible()) { 723 if (! item->submenu()->isVisible()) {
724 item->submenu()->show(); 724 item->submenu()->show();
725 item->submenu()->raise(); 725 item->submenu()->raise();
726 item->submenu()->renderTransFrame();
727 } 726 }
728 727
729 item->submenu()->moving = moving; 728 item->submenu()->moving = moving;
diff --git a/src/Slit.cc b/src/Slit.cc
index a16bfb8..422d0e4 100644
--- a/src/Slit.cc
+++ b/src/Slit.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Slit.cc,v 1.80 2003/08/30 01:01:47 fluxgen Exp $ 25// $Id: Slit.cc,v 1.81 2003/11/01 00:12:53 rathnor Exp $
26 26
27#include "Slit.hh" 27#include "Slit.hh"
28 28
@@ -968,7 +968,10 @@ void Slit::handleEvent(XEvent &event) {
968 configureRequestEvent(event.xconfigurerequest); 968 configureRequestEvent(event.xconfigurerequest);
969 } else if (event.type == DestroyNotify) { 969 } else if (event.type == DestroyNotify) {
970 removeClient(event.xdestroywindow.window, false); 970 removeClient(event.xdestroywindow.window, false);
971 } else if (event.type == UnmapNotify) { 971 } else if (event.type == UnmapNotify && event.xany.send_event) {
972 // we ignore server-generated events, which can occur
973 // on restart. The ICCCM says that a client must send
974 // a synthetic event for the withdrawn state
972 removeClient(event.xunmap.window); 975 removeClient(event.xunmap.window);
973 } 976 }
974} 977}
diff --git a/src/SlitClient.hh b/src/SlitClient.hh
index 5719ab0..f88c062 100644
--- a/src/SlitClient.hh
+++ b/src/SlitClient.hh
@@ -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: SlitClient.hh,v 1.1 2003/06/20 01:25:26 fluxgen Exp $ 22// $Id: SlitClient.hh,v 1.2 2003/11/01 00:12:53 rathnor Exp $
23 23
24#ifndef SLITCLIENT_HH 24#ifndef SLITCLIENT_HH
25#define SLITCLIENT_HH 25#define SLITCLIENT_HH
@@ -55,6 +55,7 @@ public:
55 void setWindow(Window win) { m_window = win; } 55 void setWindow(Window win) { m_window = win; }
56 void move(int x, int y) { m_x = x; m_y = y; } 56 void move(int x, int y) { m_x = x; m_y = y; }
57 void resize(unsigned int width, unsigned int height) { m_width = width; m_height = height; } 57 void resize(unsigned int width, unsigned int height) { m_width = width; m_height = height; }
58 void moveResize(int x, int y, unsigned int width, unsigned int height) { m_x = x; m_y = y; m_width = width; m_height = height; }
58 void hide(); 59 void hide();
59 void show(); 60 void show();
60 void setVisible(bool value) { m_visible = value; } 61 void setVisible(bool value) { m_visible = value; }