summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/unx/saldisp.hxx1
-rw-r--r--vcl/inc/unx/salframe.h1
-rw-r--r--vcl/unx/kde4/KDESalDisplay.cxx9
-rw-r--r--vcl/unx/kde4/KDESalDisplay.hxx2
4 files changed, 7 insertions, 6 deletions
diff --git a/vcl/inc/unx/saldisp.hxx b/vcl/inc/unx/saldisp.hxx
index 1207fa3bfe3a..99fac241398c 100644
--- a/vcl/inc/unx/saldisp.hxx
+++ b/vcl/inc/unx/saldisp.hxx
@@ -332,6 +332,7 @@ public:
Time GetLastUserEventTime( bool bAlwaysReget = false ) const;
bool XIfEventWithTimeout( XEvent*, XPointer, X_if_predicate, long i_nTimeout = 1000 ) const;
+ SalXLib* GetXLib() const { return pXLib_; }
SalI18N_InputMethod* GetInputMethod() const { return mpInputMethod; }
SalI18N_KeyboardExtension* GetKbdExtension() const { return mpKbdExtension; }
diff --git a/vcl/inc/unx/salframe.h b/vcl/inc/unx/salframe.h
index 94de1ca4369d..87d38a376f8b 100644
--- a/vcl/inc/unx/salframe.h
+++ b/vcl/inc/unx/salframe.h
@@ -182,6 +182,7 @@ public:
::Window GetForeignParent() const { return mhForeignParent; }
::Window GetStackingWindow() const { return mhStackingWindow; }
void Close() const { CallCallback( SALEVENT_CLOSE, NULL ); }
+ SalFrameStyleFlags GetStyle() const { return nStyle_; }
Cursor GetCursor() const { return hCursor_; }
bool IsCaptured() const { return nCaptured_ == 1; }
diff --git a/vcl/unx/kde4/KDESalDisplay.cxx b/vcl/unx/kde4/KDESalDisplay.cxx
index 33a36e45d5b0..105393fd9b54 100644
--- a/vcl/unx/kde4/KDESalDisplay.cxx
+++ b/vcl/unx/kde4/KDESalDisplay.cxx
@@ -46,14 +46,14 @@ SalKDEDisplay::~SalKDEDisplay()
pDisp_ = nullptr;
}
-bool SalKDEDisplay::Yield()
+void SalKDEDisplay::Yield()
{
if( DispatchInternalEvent() )
- return true;
+ return;
// Prevent blocking from Drag'n'Drop events, which may have already have processed the event
if (XEventsQueued( pDisp_, QueuedAfterReading ) == 0)
- return false;
+ return;
DBG_ASSERT( static_cast<SalYieldMutex*>(GetSalData()->m_pInstance->GetYieldMutex())->GetThreadId() ==
osl::Thread::getCurrentIdentifier(),
@@ -62,9 +62,8 @@ bool SalKDEDisplay::Yield()
XEvent event;
XNextEvent( pDisp_, &event );
if( checkDirectInputEvent( &event ))
- return true;
+ return;
qApp->x11ProcessEvent( &event );
- return true;
}
// HACK: When using Qt event loop, input methods (japanese, etc.) will get broken because
diff --git a/vcl/unx/kde4/KDESalDisplay.hxx b/vcl/unx/kde4/KDESalDisplay.hxx
index 59734c7d806e..a262a6a57ef1 100644
--- a/vcl/unx/kde4/KDESalDisplay.hxx
+++ b/vcl/unx/kde4/KDESalDisplay.hxx
@@ -27,7 +27,7 @@ class SalKDEDisplay : public SalX11Display
explicit SalKDEDisplay( Display* pDisp );
virtual ~SalKDEDisplay();
static SalKDEDisplay* self();
- virtual bool Yield() override;
+ virtual void Yield() override;
bool checkDirectInputEvent( XEvent* ev );
private:
Atom xim_protocol;