Skip to content

Commit

Permalink
Build fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
dpogue committed Nov 24, 2023
1 parent 000afff commit bdab4db
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ jobs:
libcairo2 \
libsecret-1-dev \
libtool \
libx11-xcb-dev \
libx11-dev \
libxcb-keysyms1-dev \
libxcb-xfixes0-dev \
libxfixes-dev \
nasm \
ninja-build \
qtbase5-dev
Expand Down
4 changes: 2 additions & 2 deletions Sources/Plasma/Apps/plClient/Mac-Cocoa/main.mm
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ - (void)startRunLoop
if (cmdParser.IsSpecified(kArgSkipIntroMovies))
gClient->SetFlag(plClient::kFlagSkipIntroMovies);
gClient->WindowActivate(TRUE);
gClient->SetMessagePumpProc(PumpMessageQueueProc);
gClient.Start();
});

Expand Down Expand Up @@ -451,7 +450,8 @@ - (void)startClient
[self.window makeKeyAndOrderFront:self];
self.renderLayer = self.window.contentView.layer;

plClientWindow* cwnd = new plStubClientWindow((hsWindowHndl)(__bridge void*)self.window, (hsWindowHndl)nullptr);
plStubClientWindow* cwnd = new plStubClientWindow((hsWindowHndl)(__bridge void*)self.window, (hsWindowHndl)nullptr);
cwnd->SetMessagePumpProc(PumpMessageQueueProc);
gClient.SetClientWindow(cwnd);

if (!gClient) {
Expand Down
7 changes: 6 additions & 1 deletion Sources/Plasma/Apps/plClient/plClientWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,21 @@ class plClientWindow

class plStubClientWindow : public plClientWindow
{
typedef void (*plMessagePumpProc)();

private:
hsWindowHndl fWindow;
hsWindowHndl fDisplay;
plMessagePumpProc fMessagePumpProc;

public:
plStubClientWindow(hsWindowHndl w, hsWindowHndl d) : plClientWindow(), fWindow(w), fDisplay(d) { }

void SetMessagePumpProc(plMessagePumpProc proc) { fMessagePumpProc = proc; }

bool CreateClientWindow() override { return true; }
void ShowClientWindow() override { }
bool ProcessEvents() override { return false; }
bool ProcessEvents() override { fMessagePumpProc(); return false; }
void DeInit() override { }

hsWindowHndl GetWindowHandle() const override {
Expand Down

0 comments on commit bdab4db

Please sign in to comment.