Skip to content

Commit 976beb6

Browse files
author
Simon Hofmann
committed
(#19) Introduces OS specific source folders
1 parent 88bb9a1 commit 976beb6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Diff for: src/highlightwindow_linux.c renamed to src/linux/highlightwindow.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <X11/Xlib.h>
22
#include <X11/Xutil.h>
33
#include <unistd.h>
4-
#include "highlightwindow.h"
4+
#include "../highlightwindow.h"
55

66
void showHighlightWindow(int32_t x, int32_t y, int32_t width, int32_t height, long duration, float opacity) {
77
Display *d = XOpenDisplay(NULL);
@@ -23,7 +23,7 @@ void showHighlightWindow(int32_t x, int32_t y, int32_t width, int32_t height, lo
2323
Window overlay = XCreateWindow(
2424
d, root,
2525
x, y, width, height, 0,
26-
vinfo.depth, InputOutput,
26+
vinfo.depth, InputOutput,
2727
vinfo.visual,
2828
CWOverrideRedirect | CWColormap | CWBackPixel | CWBorderPixel, &attrs
2929
);

Diff for: src/xdisplay.c renamed to src/linux/xdisplay.c

File renamed without changes.

Diff for: src/highlightwindow_macos.m renamed to src/macos/highlightwindow.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "highlightwindow.h"
1+
#include "../highlightwindow.h"
22
#import <Cocoa/Cocoa.h>
33

44
void showHighlightWindow(int32_t x, int32_t y, int32_t width, int32_t height, long duration, float opacity) {
@@ -24,4 +24,4 @@ void showHighlightWindow(int32_t x, int32_t y, int32_t width, int32_t height, lo
2424
}];
2525
[NSApp run];
2626
[pool release];
27-
}
27+
}

Diff for: src/highlightwindow_win32.c renamed to src/win32/highlightwindow.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#ifndef UNICODE
22
#define UNICODE
3-
#endif
3+
#endif
44

55
#include <windows.h>
6-
#include "highlightwindow.h"
6+
#include "../highlightwindow.h"
77

88
#define ID_CLOSE_TIMER 1001
99

@@ -20,7 +20,7 @@ void showHighlightWindow(int32_t x, int32_t y, int32_t width, int32_t height, lo
2020
wc.lpszClassName = CLASS_NAME;
2121
wc.hbrBackground = CreateSolidBrush(RGB(255, 0, 0));
2222

23-
RegisterClass(&wc);
23+
RegisterClass(&wc);
2424

2525
HWND hwnd = CreateWindowEx(
2626
WS_EX_LAYERED|WS_EX_TOPMOST|WS_EX_TRANSPARENT|WS_EX_TOOLWINDOW,

0 commit comments

Comments
 (0)