Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two applications with the same xClass are not positioned deterministic on i3 #156

Open
havardh opened this issue Sep 17, 2018 · 0 comments

Comments

@havardh
Copy link
Owner

havardh commented Sep 17, 2018

How to reproduce

Add a split with two instances of the same application.

import React from 'react';
import render, { Workspace, requireComponent } from 'workflow-react';

const { SplitH } = requireComponent('workflow-layout-tiled');
const { Terminal } = requireComponent('workflow-apps-defaults');

export default render(
  <Workspace name={'term:split'}>
    <SplitH>
      <Terminal cwd={"/path/to/foo"} percent={0.5} />
      <Terminal cwd={"/path/to"bar"} percent={0.5} />
    </SplitH>
  </Workspace>
);

Expected

The terminal with the /path/to/foo should always be opened on the left.

Actual

The ordering of the applications are determined by which application is opened first.

Details

The configuration file passed to append_layout in i3 matches only on WM_CLASS. This means that i3 does not know which application to place where.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant