aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-10-09 16:48:09 (GMT)
committerrathnor <rathnor>2003-10-09 16:48:09 (GMT)
commit018665d7a3ae8cb642880176d415f57fc178c299 (patch)
tree05a21b11a9f28bd8b456e080be52148de30f5018 /src/fluxbox.cc
parent075dc35b5eeb875e971842e8230338395367e08f (diff)
downloadfluxbox_pavel-018665d7a3ae8cb642880176d415f57fc178c299.zip
fluxbox_pavel-018665d7a3ae8cb642880176d415f57fc178c299.tar.bz2
drawing optimisations and fixes
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 957ea15..45ec6e7 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.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: fluxbox.cc,v 1.197 2003/10/06 09:55:36 rathnor Exp $ 25// $Id: fluxbox.cc,v 1.198 2003/10/09 16:48:09 rathnor Exp $
26 26
27#include "fluxbox.hh" 27#include "fluxbox.hh"
28 28
@@ -614,10 +614,11 @@ Fluxbox::~Fluxbox() {
614} 614}
615 615
616void Fluxbox::eventLoop() { 616void Fluxbox::eventLoop() {
617 Display *disp = display();
617 while (!m_shutdown) { 618 while (!m_shutdown) {
618 if (XPending(display())) { 619 if (XPending(disp)) {
619 XEvent e; 620 XEvent e;
620 XNextEvent(display(), &e); 621 XNextEvent(disp, &e);
621 622
622 if (last_bad_window != None && e.xany.window == last_bad_window && 623 if (last_bad_window != None && e.xany.window == last_bad_window &&
623 e.type != DestroyNotify) { // we must let the actual destroys through 624 e.type != DestroyNotify) { // we must let the actual destroys through
@@ -633,7 +634,7 @@ void Fluxbox::eventLoop() {
633 } 634 }
634 } 635 }
635 } else { 636 } else {
636 FbTk::Timer::updateTimers(ConnectionNumber(display())); //handle all timers 637 FbTk::Timer::updateTimers(ConnectionNumber(disp)); //handle all timers
637 } 638 }
638 } 639 }
639} 640}