diff options
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r-- | src/fluxbox.cc | 9 |
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 | ||
616 | void Fluxbox::eventLoop() { | 616 | void 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 | } |