[xwayland] Ensure that DataBridge is initialized prior to PropertyNotify
Since WaylandCursorImage no longer flushes the internal connection connection and dispatches events, the DataBridge must do it to ensure that the selections are initialized prior to receiving a ProperyNotify event.
This commit is contained in:
parent
cb7a9456c0
commit
68ec39f433
1 changed files with 4 additions and 1 deletions
|
@ -28,6 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "wayland_server.h"
|
||||
#include "workspace.h"
|
||||
|
||||
#include <KWayland/Client/connection_thread.h>
|
||||
#include <KWayland/Client/datadevicemanager.h>
|
||||
#include <KWayland/Client/seat.h>
|
||||
|
||||
|
@ -58,7 +59,6 @@ DataBridge::DataBridge(QObject *parent)
|
|||
DataDeviceManager *dataDeviceManager = waylandServer()->internalDataDeviceManager();
|
||||
Seat *seat = waylandServer()->internalSeat();
|
||||
m_dataDevice = dataDeviceManager->getDataDevice(seat, this);
|
||||
waylandServer()->dispatch();
|
||||
|
||||
const DataDeviceManagerInterface *dataDeviceManagerInterface =
|
||||
waylandServer()->dataDeviceManager();
|
||||
|
@ -78,6 +78,9 @@ DataBridge::DataBridge(QObject *parent)
|
|||
init();
|
||||
}
|
||||
);
|
||||
|
||||
waylandServer()->internalClientConection()->flush();
|
||||
waylandServer()->dispatch();
|
||||
}
|
||||
|
||||
DataBridge::~DataBridge()
|
||||
|
|
Loading…
Reference in a new issue