Skip to content

Commit

Permalink
fix: correct type -> eventType rename on WM events
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger committed Jul 26, 2024
1 parent 1e14159 commit b4c265c
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/types/events/application-exiting-event.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { WmEventType } from '../wm-events';

export interface ApplicationExitingEvent {
type: WmEventType.APPLICATION_EXITING;
eventType: WmEventType.APPLICATION_EXITING;
}
2 changes: 1 addition & 1 deletion src/types/events/binding-modes-changed-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import type { BindingModeConfig } from '../config';
import { WmEventType } from '../wm-events';

export interface BindingModesChangedEvent {
type: WmEventType.BINDING_MODES_CHANGED;
eventType: WmEventType.BINDING_MODES_CHANGED;
newBindingModes: BindingModeConfig[];
}
2 changes: 1 addition & 1 deletion src/types/events/focus-changed-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { WmEventType } from '../wm-events';
import type { Window, Workspace } from '../containers';

export interface FocusChangedEvent {
type: WmEventType.FOCUS_CHANGED;
eventType: WmEventType.FOCUS_CHANGED;
focusedContainer: Window | Workspace;
}
2 changes: 1 addition & 1 deletion src/types/events/focused-container-moved-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { WmEventType } from '../wm-events';
import type { Window, Workspace } from '../containers';

export interface FocusedContainerMovedEvent {
type: WmEventType.FOCUSED_CONTAINER_MOVED;
eventType: WmEventType.FOCUSED_CONTAINER_MOVED;
focusedContainer: Window | Workspace;
}
2 changes: 1 addition & 1 deletion src/types/events/monitor-added-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { WmEventType } from '../wm-events';
import type { Monitor } from '../containers';

export interface MonitorAddedEvent {
type: WmEventType.MONITOR_ADDED;
eventType: WmEventType.MONITOR_ADDED;
addedMonitor: Monitor;
}
2 changes: 1 addition & 1 deletion src/types/events/monitor-removed-event.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { WmEventType } from '../wm-events';

export interface MonitorRemovedEvent {
type: WmEventType.MONITOR_REMOVED;
eventType: WmEventType.MONITOR_REMOVED;
removedId: string;
removedDeviceName: string;
}
2 changes: 1 addition & 1 deletion src/types/events/monitor-updated-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { WmEventType } from '../wm-events';
import type { Monitor } from '../containers';

export interface MonitorUpdatedEvent {
type: WmEventType.MONITOR_UPDATED;
eventType: WmEventType.MONITOR_UPDATED;
updatedMonitor: Monitor;
}
2 changes: 1 addition & 1 deletion src/types/events/tiling-direction-changed-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { SplitContainer, Workspace } from '../containers';
import { WmEventType } from '../wm-events';

export interface TilingDirectionChangedEvent {
type: WmEventType.TILING_DIRECTION_CHANGED;
eventType: WmEventType.TILING_DIRECTION_CHANGED;
newTilingDirection: TilingDirection;
directionContainer: SplitContainer | Workspace;
}
2 changes: 1 addition & 1 deletion src/types/events/user-config-changed-event.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { WmEventType } from '../wm-events';

export interface UserConfigChangedEvent {
type: WmEventType.USER_CONFIG_CHANGED;
eventType: WmEventType.USER_CONFIG_CHANGED;
configPath: string;
configString: string;
// TODO: Add a type for the parsed config.
Expand Down
2 changes: 1 addition & 1 deletion src/types/events/window-managed-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import type { Window } from '../containers';
import { WmEventType } from '../wm-events';

export interface WindowManagedEvent {
type: WmEventType.WINDOW_MANAGED;
eventType: WmEventType.WINDOW_MANAGED;
managedWindow: Window;
}
2 changes: 1 addition & 1 deletion src/types/events/window-unmanaged-event.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { WmEventType } from '../wm-events';

export interface WindowUnmanagedEvent {
type: WmEventType.WINDOW_UNMANAGED;
eventType: WmEventType.WINDOW_UNMANAGED;
unmanagedId: string;
unmanagedHandle: number;
}
2 changes: 1 addition & 1 deletion src/types/events/workspace-activated-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { WmEventType } from '../wm-events';
import type { Workspace } from '../containers';

export interface WorkspaceActivatedEvent {
type: WmEventType.WORKSPACE_ACTIVATED;
eventType: WmEventType.WORKSPACE_ACTIVATED;
activatedWorkspace: Workspace;
}
2 changes: 1 addition & 1 deletion src/types/events/workspace-deactivated-event.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { WmEventType } from '../wm-events';

export interface WorkspaceDeactivatedEvent {
type: WmEventType.WORKSPACE_DEACTIVATED;
eventType: WmEventType.WORKSPACE_DEACTIVATED;
deactivatedId: string;
deactivatedName: string;
}
2 changes: 1 addition & 1 deletion src/types/events/workspace-updated-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import type { Workspace } from '../containers';
import { WmEventType } from '../wm-events';

export interface WorkspaceUpdatedEvent {
type: WmEventType.WORKSPACE_UPDATED;
eventType: WmEventType.WORKSPACE_UPDATED;
updatedWorkspace: Workspace;
}

0 comments on commit b4c265c

Please sign in to comment.