aboutsummaryrefslogtreecommitdiff
path: root/net/spiritvnc/files/patch-src_spiritvnc.cxx
blob: 987c78f698c72fda70e9c370e7e48c1b1c97fec3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- src/spiritvnc.cxx.orig	2021-02-15 06:05:31 UTC
+++ src/spiritvnc.cxx
@@ -46,6 +46,8 @@
 #include <FL/Fl_PNG_Image.H>
 #include "app.h"
 #include "consts_enums.h"
+#include <X11/xpm.h>
+#include "../spiritvnc.xpm"
 
 
 AppVars * app = new AppVars();
@@ -79,6 +81,12 @@ int main (int argc, char **argv)
 
     // set app icons
     svCreateAppIcons();
+
+    // set window's icon
+    Pixmap xpm, mask;
+    XpmCreatePixmapFromData(fl_display, DefaultRootWindow(fl_display),
+                            spiritvnc_xpm, &xpm, &mask, NULL);
+    app->mainWin->icon(reinterpret_cast<const void *>(xpm));
 
     // manually trigger misc events callback
     svPositionWidgets();