aboutsummaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorLines
2016-07-14Compute what workspace button is clickedDavid Eklov-0/+6
This commit does not do anything with this information other than logging it.
2016-07-14Use int instead of wl_fixed_t for mouse coordinatesDavid Eklov-3/+3
2016-07-14Extract workspace size computation from render_workspace_button()David Eklov-0/+8
Also remove some unnecessary strtup()s and rename a few variables and functions.
2016-07-14Set panels' geometries correctly and don't render them explicitlyDavid Eklov-0/+2
Panels were explicitly rendered by calling wlc_surface_render in handle_output_pre_render. Calling wlc_surface_render does not set the surface's geometry (like wlc_view_set_geometry does). Sway did not call wlc_view_set_geometry for panels, so wlc defaulted their geometry to be at the origin. This is not correct for bars unless their location is top. Furthermore, for a surface to receive pointer events, its mask has to be set to visible. This causes wlc to render these surfaces, causing panels and backgrounds to be rendered twice. This commit makes panels and surfaces visible, sets the correct geometries and removes the code that explicitly rendered them.
2016-07-14Don't treat backgrounds as shell surfacesDavid Eklov-2/+0
This code had some issues. Remove it now so that we can start clean and fix it later.
2016-07-15Suspend destruction of wss when creating viewsMykyta Holubakha-0/+2
2016-07-07Fix tabbed/stacked corner case #742D.B-0/+5
Tabbed/stacked containers are now created only if a view is present on the workspace. If a view is created on previously empty tabbed/stacked workspace, it gets wrapped in a container.
2016-07-06Fix formatting guide violations (spaces instead of tabs)David Eklov-20/+20
2016-07-06Enable windows to register to get notified of pointer button eventsDavid Eklov-0/+10
2016-07-04Fix formatting guide violations (spaces instead of tabs)David Eklov-20/+20
2016-07-04Move code to make a window a shell surface into seperate functionDavid Eklov-0/+1
2016-07-04Enable backgrounds and panels to be shell surfacesDavid Eklov-0/+4
Prior to this commit all windows (e.g. shell surfaces) were handled the same way in handle_view_created. Since backgrounds and panels have to be treated differently, they could not be shell surfaces. This changes checks whether a client is a background or a panel in handle_view_created and exists to let them be dealt with elsewhere.
2016-07-04Merge branch 'master' into get-tree-commandZandr Martin-2/+12
2016-07-04implement `get_tree` commandZandr Martin-0/+13
2016-07-03typo in focus.hZandr Martin-1/+1
2016-07-03resize command updates (#713)Zandr Martin-2/+12
2016-06-27Add get_log_level() to encapsulate v (current log level)David Eklov-0/+1
This patch also makes all global variable in log.c static.
2016-06-11implement resize command for absolute dimensionsZandr Martin-0/+1
2016-06-11cleanup + add timeouts for pid_workspace listZandr Martin-0/+5
2016-06-11clean up pid/workspace stuffZandr Martin-0/+2
2016-06-10semi-working (only non-client/server wayland apps)Zandr Martin-0/+8
2016-06-06messy, unfinished versionZandr Martin-0/+8
2016-06-02implement stable sort for listsZandr Martin-2/+3
also change sort_workspaces() to use it
2016-06-01Clean up not used variablesDenis Doria-1/+0
2016-06-01Included option floating_minimum_sizeDenis Doria-1/+2
Values cannot be negative or 0; if so uses the default 75x50. Uses the same syntax as i3: floating_minimum_size <width> x <height>, although the x can be anything.
2016-05-31Initial work for floating view with sane valuesDenis Doria-0/+8
2016-05-27Implement sort_workspaces() function for outputs.Zandr Martin-0/+3
This seems to have resolved issue #669 for me.
2016-05-23Match definition with declarationTomáš Čech-1/+1
2016-05-14Support floating_scroll sidewaysMykyta Holubakha-0/+2
2016-05-08Remove FSB_GAPS_INNER and FSB_GAPS_OUTERMykyta Holubakha-9/+2
2016-05-07Implemented configurable floating scroll behaviorMykyta Holubakha-5/+6
2016-05-02common: refactor sway_log()Eric Engestrom-3/+3
This removes most preprocessor logic, leaving it only it the header.
2016-05-01Add input cmd for setting pointer accel profile.Jasen Borisov-0/+2
2016-04-27border: clear buffer on fullscreen viewsMikkel Oscar Lyderik-0/+8
This patch makes sure to clear the border buffer of fullscreen view so the border doesn't get drawn behind a fullscreen view, which would be visible if the view was transparent.
2016-04-25Remove unused functionMikkel Oscar Lyderik-5/+0
2016-04-25Add support for nested tabbed/stacked containersMikkel Oscar Lyderik-4/+26
2016-04-25Reapply prev layout when exiting tabbed/stackedMikkel Oscar Lyderik-0/+1
2016-04-25Correctly determine default layoutMikkel Oscar Lyderik-0/+5
2016-04-25Fix problems with floating windowsMikkel Oscar Lyderik-0/+6
Makes any tabbed/stacked layout a container to separate from floating windows which may be attached to a workspace.
2016-04-24Renamed to pango_markupMykyta Holubakha-2/+2
2016-04-24Added plaintext markup configurationMykyta Holubakha-0/+2
2016-04-17Style issueDrew DeVault-1/+1
2016-04-17Flesh out pango markup implementationDrew DeVault-3/+6
2016-04-02Fix spelling mistakesEric Engestrom-1/+1
2016-03-31Add cmds new_window and new_floatMikkel Oscar Lyderik-0/+2
Makes it possible to set default layout style for new windows and new floating windows. Close #556
2016-03-30New feature: adjust gaps with floating_mod+scrollDrew DeVault-0/+8
I made this configurable but I didn't make the command for it. That's left as an exercise to an eager contributor. mod_scroll_behavior [gaps inner|gaps outer] Would merge implementions of more behaviors for mod+scroll, if anyone has some neato ideas.
2016-03-30Mark focused view focus_inactive on unfocused outputMikkel Oscar Lyderik-0/+1
2016-03-30Implement bordersMikkel Oscar Lyderik-10/+13
The borders are implemented as a surface/buffer attached to each view which is sent to and rendered by wlc in the view_pre_render callback. All the drawing logic is handled in sway/border.c and all the logic for calculating the geometry of the border/view is handled in `update_geometry` in sway/layout.c (same place as gaps are calculated).
2016-03-30Add border <none|normal|toggle|pixel> configMikkel Oscar Lyderik-4/+6
2016-03-30Implement parsing of hide_edge_bordersMikkel Oscar Lyderik-0/+9