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

Focus v2 #65

Merged
merged 6 commits into from
Aug 18, 2015
Merged

Focus v2 #65

merged 6 commits into from
Aug 18, 2015

Conversation

taiyu-len
Copy link
Collaborator

focus is better handled now.
there is container focus which is the current container sway is focused on.
there is view focus which is the container that should receive keyboard input.
other then that they are pretty similar, and in most cases the same.

focus_view has been replaced with set_container_focus
focus_pointer has been replaced with set_container_focus(container_under_pointer())

movement.[ch] has been renamed to focus.[ch] with some extra functions added.

handling views by their type is still pretty off, so we need to do more work on that. but for now
dmenu/rightclick/firefox popups all work as they should.

merged @Luminarys resizing code into this.
though it seems to need some work. the windows are quite floaty.

if (!checkarg(argc, "floating_modifier", EXPECTED_EQUAL_TO, 1)) {
return false;
}
config->floating_mod = xkb_keysym_from_name(argv[0], XKB_KEYSYM_CASE_INSENSITIVE);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this won't work for modifier keys. Look at bindsym, it has to deal with them special. Not going to block this pull request because of it, though.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it should, I changed some code a while back that made is so that varsubs are done on all parts of every command.

ddevault added a commit that referenced this pull request Aug 18, 2015
@ddevault ddevault merged commit 2f6dd06 into swaywm:master Aug 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants