No splash dbus interface.
svn path=/trunk/KDE/kdebase/workspace/; revision=643112
This commit is contained in:
parent
5cabf743ae
commit
d4fbab83d1
2 changed files with 9 additions and 134 deletions
130
CMakeLists.txt
130
CMakeLists.txt
|
@ -8,22 +8,7 @@ add_subdirectory( pics )
|
||||||
add_subdirectory( clients )
|
add_subdirectory( clients )
|
||||||
add_subdirectory( data )
|
add_subdirectory( data )
|
||||||
|
|
||||||
include_directories(
|
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/lib ${CMAKE_CURRENT_SOURCE_DIR}/lib )
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/lib
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/lib
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/effects
|
|
||||||
)
|
|
||||||
|
|
||||||
include(UsePkgConfig)
|
|
||||||
PKGCONFIG(libcaptury CAPTURY_INCLUDES CAPTURY_LINK_DIR CAPTURY_LDFLAGS CAPTURY_CFLAGS)
|
|
||||||
if( CAPTURY_LDFLAGS )
|
|
||||||
SET( CAPTURY_FOUND TRUE )
|
|
||||||
endif( CAPTURY_LDFLAGS )
|
|
||||||
macro_bool_to_01( CAPTURY_FOUND HAVE_CAPTURY )
|
|
||||||
|
|
||||||
configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h )
|
|
||||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
||||||
|
|
||||||
|
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
|
|
||||||
|
@ -50,131 +35,28 @@ set(kwin_KDEINIT_SRCS
|
||||||
activation.cpp
|
activation.cpp
|
||||||
useractions.cpp
|
useractions.cpp
|
||||||
geometry.cpp
|
geometry.cpp
|
||||||
rules.cpp
|
rules.cpp )
|
||||||
composite.cpp
|
|
||||||
toplevel.cpp
|
|
||||||
unmanaged.cpp
|
|
||||||
scene.cpp
|
|
||||||
scene_basic.cpp
|
|
||||||
scene_xrender.cpp
|
|
||||||
scene_opengl.cpp
|
|
||||||
glutils.cpp
|
|
||||||
glutils_funcs.cpp
|
|
||||||
deleted.cpp
|
|
||||||
effects.cpp
|
|
||||||
effects/fade.cpp
|
|
||||||
effects/maketransparent.cpp
|
|
||||||
effects/scalein.cpp
|
|
||||||
effects/shakymove.cpp
|
|
||||||
effects/shiftworkspaceup.cpp
|
|
||||||
effects/howto.cpp
|
|
||||||
effects/dialogparent.cpp
|
|
||||||
effects/showfps.cpp
|
|
||||||
effects/zoom.cpp
|
|
||||||
effects/presentwindows.cpp
|
|
||||||
effects/minimizeanimation.cpp
|
|
||||||
effects/desktopchangeslide.cpp
|
|
||||||
effects/boxswitch.cpp
|
|
||||||
effects/fallapart.cpp
|
|
||||||
effects/drunken.cpp
|
|
||||||
effects/test_input.cpp
|
|
||||||
effects/test_thumbnail.cpp
|
|
||||||
)
|
|
||||||
|
|
||||||
if( CAPTURY_FOUND )
|
|
||||||
set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
|
|
||||||
effects/videorecord.cpp
|
|
||||||
)
|
|
||||||
include_directories(${CAPTURY_INCLUDES})
|
|
||||||
endif( CAPTURY_FOUND )
|
|
||||||
|
|
||||||
if(HAVE_OPENGL)
|
|
||||||
set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
|
|
||||||
effects/wavywindows.cpp
|
|
||||||
)
|
|
||||||
endif(HAVE_OPENGL)
|
|
||||||
|
|
||||||
qt4_add_dbus_adaptor( kwin_KDEINIT_SRCS org.kde.KWin.xml workspace.h KWinInternal::Workspace )
|
qt4_add_dbus_adaptor( kwin_KDEINIT_SRCS org.kde.KWin.xml workspace.h KWinInternal::Workspace )
|
||||||
|
|
||||||
kde4_automoc(kwin ${kwin_KDEINIT_SRCS})
|
kde4_automoc(${kwin_KDEINIT_SRCS})
|
||||||
|
|
||||||
|
|
||||||
kde4_add_kdeinit_executable( kwin ${kwin_KDEINIT_SRCS})
|
kde4_add_kdeinit_executable( kwin ${kwin_KDEINIT_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kdeinit_kwin ${KDE4_KDEUI_LIBS} kdecorations ${X11_LIBRARIES} ${QT_QT3SUPPORT_LIBRARY} )
|
target_link_libraries(kdeinit_kwin ${KDE4_KDEUI_LIBS} kdecorations ${X11_LIBRARIES} ${QT_QT3SUPPORT_LIBRARY} )
|
||||||
if(OPENGL_FOUND)
|
|
||||||
target_link_libraries(kdeinit_kwin ${OPENGL_gl_LIBRARY})
|
|
||||||
# -ldl used by OpenGL code
|
|
||||||
target_link_libraries(kdeinit_kwin -ldl)
|
|
||||||
endif(OPENGL_FOUND)
|
|
||||||
if (X11_Xrandr_FOUND)
|
|
||||||
target_link_libraries(kdeinit_kwin ${X11_Xrandr_LIB})
|
|
||||||
endif (X11_Xrandr_FOUND)
|
|
||||||
if (X11_Xcomposite_FOUND)
|
|
||||||
target_link_libraries(kdeinit_kwin ${X11_Xcomposite_LIB})
|
|
||||||
endif (X11_Xcomposite_FOUND)
|
|
||||||
if (X11_Xdamage_FOUND)
|
|
||||||
target_link_libraries(kdeinit_kwin ${X11_Xdamage_LIB})
|
|
||||||
endif (X11_Xdamage_FOUND)
|
|
||||||
if (X11_Xrender_FOUND)
|
|
||||||
target_link_libraries(kdeinit_kwin ${X11_Xrender_LIB})
|
|
||||||
endif (X11_Xrender_FOUND)
|
|
||||||
if (X11_Xfixes_FOUND)
|
|
||||||
target_link_libraries(kdeinit_kwin ${X11_Xfixes_LIB})
|
|
||||||
endif (X11_Xfixes_FOUND)
|
|
||||||
if( HAVE_CAPTURY )
|
|
||||||
target_link_libraries(kdeinit_kwin ${CAPTURY_LDFLAGS})
|
|
||||||
endif( HAVE_CAPTURY )
|
|
||||||
|
|
||||||
|
|
||||||
install(TARGETS kdeinit_kwin DESTINATION ${LIB_INSTALL_DIR} )
|
install(TARGETS kdeinit_kwin DESTINATION ${LIB_INSTALL_DIR} )
|
||||||
|
|
||||||
target_link_libraries( kwin kdeinit_kwin )
|
target_link_libraries( kwin kdeinit_kwin )
|
||||||
install(TARGETS kwin DESTINATION bin)
|
install(TARGETS kwin DESTINATION ${BIN_INSTALL_DIR})
|
||||||
|
|
||||||
########### install files ###############
|
########### install files ###############
|
||||||
|
|
||||||
install( FILES kwin.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
|
install( FILES kwin.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
|
||||||
install( FILES kwin.notifyrc DESTINATION ${DATA_INSTALL_DIR}/kwin )
|
install( FILES kwin.notifyrc DESTINATION ${DATA_INSTALL_DIR}/kwin )
|
||||||
|
install( FILES org.kde.KWin.xml DESTINATION ${DBUS_INTERFACES_DIR} )
|
||||||
|
|
||||||
kde4_install_icons( ${ICON_INSTALL_DIR} crystalsvg )
|
kde4_install_icons( ${ICON_INSTALL_DIR} )
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#original Makefile.am contents follow:
|
|
||||||
|
|
||||||
#INCLUDES = -I$(srcdir)/lib $(all_includes)
|
|
||||||
#
|
|
||||||
#SUBDIRS = lib . killer kcmkwin pics clients oldheaders data
|
|
||||||
#
|
|
||||||
#bin_PROGRAMS =
|
|
||||||
#lib_LTLIBRARIES =
|
|
||||||
#kdeinit_LTLIBRARIES = kwin.la
|
|
||||||
#
|
|
||||||
#kwin_la_SOURCES = workspace.cpp client.cpp placement.cpp atoms.cpp \
|
|
||||||
# utils.cpp layers.cpp main.cpp popupinfo.cpp tabbox.cpp \
|
|
||||||
# options.cpp plugins.cpp events.cpp KWinInterface.skel \
|
|
||||||
# killwindow.cpp geometrytip.cpp sm.cpp group.cpp bridge.cpp \
|
|
||||||
# manage.cpp notifications.cpp activation.cpp useractions.cpp \
|
|
||||||
# geometry.cpp rules.cpp
|
|
||||||
#
|
|
||||||
#kwin_la_LIBADD = $(LIB_KDEUI) lib/libkdecorations.la
|
|
||||||
#kwin_la_LDFLAGS = $(all_libraries) -module -avoid-version
|
|
||||||
#
|
|
||||||
#include_HEADERS = KWinInterface.h
|
|
||||||
#
|
|
||||||
#KDE_ICON = kwin
|
|
||||||
#
|
|
||||||
#METASOURCES = AUTO
|
|
||||||
#
|
|
||||||
#messages: rc.cpp
|
|
||||||
# $(XGETTEXT) *.h *.cpp killer/*.cpp lib/*.cpp -o $(podir)/kwin.pot
|
|
||||||
#
|
|
||||||
#kwin_datadir = $(kde_datadir)/kwin
|
|
||||||
#
|
|
||||||
#kwin_data_DATA= eventsrc
|
|
||||||
#
|
|
||||||
#kde_kcfg_DATA = kwin.kcfg
|
|
||||||
#
|
|
||||||
#include ../../admin/Doxyfile.am
|
|
||||||
|
|
13
main.cpp
13
main.cpp
|
@ -14,6 +14,7 @@ License. See the file "COPYING" for the exact licensing terms.
|
||||||
|
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
|
#include <kglobal.h>
|
||||||
#include <klocale.h>
|
#include <klocale.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <kcmdlineargs.h>
|
#include <kcmdlineargs.h>
|
||||||
|
@ -25,13 +26,11 @@ License. See the file "COPYING" for the exact licensing terms.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <fixx11h.h>
|
#include <fixx11h.h>
|
||||||
#include <QtDBus/QtDBus>
|
#include <QtDBus/QtDBus>
|
||||||
#include <kglobal.h>
|
|
||||||
|
|
||||||
#include "atoms.h"
|
#include "atoms.h"
|
||||||
#include "options.h"
|
#include "options.h"
|
||||||
#include "sm.h"
|
#include "sm.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "effects.h"
|
|
||||||
|
|
||||||
#define INT8 _X11INT8
|
#define INT8 _X11INT8
|
||||||
#define INT32 _X11INT32
|
#define INT32 _X11INT32
|
||||||
|
@ -121,8 +120,6 @@ Application::Application( )
|
||||||
options = new Options;
|
options = new Options;
|
||||||
atoms = new Atoms;
|
atoms = new Atoms;
|
||||||
|
|
||||||
initting = false; // TODO
|
|
||||||
|
|
||||||
// create workspace.
|
// create workspace.
|
||||||
(void) new Workspace( isSessionRestored() );
|
(void) new Workspace( isSessionRestored() );
|
||||||
|
|
||||||
|
@ -130,8 +127,6 @@ Application::Application( )
|
||||||
|
|
||||||
initting = false; // startup done, we are up and running now.
|
initting = false; // startup done, we are up and running now.
|
||||||
|
|
||||||
QDBusInterface ksplash( "org.kde.ksplash", "/ksplash", "org.kde.KSplash" );
|
|
||||||
ksplash.call( "upAndRunning", QString( "wm started" ));
|
|
||||||
XEvent e;
|
XEvent e;
|
||||||
e.xclient.type = ClientMessage;
|
e.xclient.type = ClientMessage;
|
||||||
e.xclient.message_type = XInternAtom( display(), "_KDE_SPLASH_PROGRESS", False );
|
e.xclient.message_type = XInternAtom( display(), "_KDE_SPLASH_PROGRESS", False );
|
||||||
|
@ -148,8 +143,6 @@ Application::~Application()
|
||||||
if( owner.ownerWindow() != None ) // if there was no --replace (no new WM)
|
if( owner.ownerWindow() != None ) // if there was no --replace (no new WM)
|
||||||
XSetInputFocus( display(), PointerRoot, RevertToPointerRoot, xTime() );
|
XSetInputFocus( display(), PointerRoot, RevertToPointerRoot, xTime() );
|
||||||
delete options;
|
delete options;
|
||||||
delete effects;
|
|
||||||
delete atoms;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::lostSelection()
|
void Application::lostSelection()
|
||||||
|
@ -284,9 +277,9 @@ KDE_EXPORT int kdemain( int argc, char * argv[] )
|
||||||
|
|
||||||
QString appname;
|
QString appname;
|
||||||
if (KWinInternal::screen_number == 0)
|
if (KWinInternal::screen_number == 0)
|
||||||
appname = "kwin";
|
appname = "org.kde.kwin";
|
||||||
else
|
else
|
||||||
appname.sprintf("kwin-screen-%d", KWinInternal::screen_number);
|
appname.sprintf("org.kde.kwin-screen-%d", KWinInternal::screen_number);
|
||||||
|
|
||||||
QDBusConnection::sessionBus().interface()->registerService( appname, QDBusConnectionInterface::DontQueueService );
|
QDBusConnection::sessionBus().interface()->registerService( appname, QDBusConnectionInterface::DontQueueService );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue