Changeset 4565b4c


Ignore:
Timestamp:
04/23/14 06:00:36 (14 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, enter/10, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
02cf569
Parents:
e02b72f9
Message:

Make sure to close all windows before logging out of lumina.

Location:
lumina/lumina-desktop
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lumina/lumina-desktop/SystemWindow.h

    r51ace02 r4565b4c  
    55#include <QCoreApplication> 
    66#include <QDesktopWidget> 
     7#include <QList> 
     8 
     9#include "ui_SystemWindow.h" 
     10#include "Globals.h" 
    711 
    812#include <LuminaXDG.h> 
     13#include <LuminaX11.h> 
    914 
    10 #include "Globals.h" 
     15 
    1116 
    1217namespace Ui{ 
     
    2328        Ui::SystemWindow *ui; 
    2429 
     30        void closeAllWindows(){ 
     31          QList<WId> WL = LX11::WindowList(); 
     32          for(int i=0; i<WL.length(); i++){ 
     33            LX11::CloseWindow(WL[i]); 
     34          } 
     35        } 
     36         
    2537private slots: 
    2638        void sysLogout(){ 
     39          closeAllWindows(); 
    2740          QCoreApplication::exit(0); 
    2841        } 
    2942         
    3043        void sysRestart(){ 
     44          closeAllWindows(); 
    3145          SYSTEM::restart(); 
    3246          QCoreApplication::exit(0);             
     
    3448         
    3549        void sysShutdown(){ 
     50          closeAllWindows(); 
    3651          SYSTEM::shutdown(); 
    3752          QCoreApplication::exit(0); 
  • lumina/lumina-desktop/WMProcess.cpp

    rf06effb r4565b4c  
    3434  if(isRunning()){ 
    3535    inShutdown = true; 
    36     QProcess::startDetached("fluxbox-remote closeallwindows"); 
     36    //QProcess::startDetached("fluxbox-remote closeallwindows"); 
    3737    ssaver->kill(); 
    3838    this->kill(); 
Note: See TracChangeset for help on using the changeset viewer.