summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Reload on SIGHUPGravatar Charles Lehner 2016-07-081-0/+14
| | | | | | | | | | | | | | | | | | | ratiueratuie rstiure tiurest aruite rautie rautier tiue rtaruit ratiuera This patch makes surf reload its pages when it receives a SIGHUP signal. This makes it easier for shell scripts to trigger surf to reload. I'm aware of using xdotool to trigger ctrl+r keypresses for reloading but I wasn't able to get that to work in a general way. [1] I'm sending this here in case surf maintainers and users would like to include this in core - if not I will submit it to the wiki. Regards, Charles [1] http://surf.suckless.org/files/autorefresh Signed-off-by: Christoph Lohmann <20h@r-36.net>
* Add a few configuration optionsGravatar Quentin Rameau 2016-07-052-0/+18
| | | | | | | | | “enable-accelerated-2d-canvas” “media-playback-requires-user-gesture” “enable-site-specific-quirks” Lookup those at https://webkitgtk.org/reference/webkit2gtk/stable/WebKitSettings.html
* Fix GdkDisplay assignment in setup()Gravatar Quentin Rameau 2016-07-051-1/+2
| | | | Init GTK before trying to get the default display.
* Get rid of getkbdeviceGravatar Quentin Rameau 2016-07-051-19/+3
| | | | | The GTK guys nicely took in account our request and pushed in a convenience function to get default keyboard device.
* Fixing the last patch to the surf style.Gravatar Christoph Lohmann 2016-07-051-15/+18
|
* Check $HOME and home dir of $USER before getpwuid()->pw_dirGravatar Dmitry Bogatov 2016-07-051-7/+36
| | | | | | | | | | | | | getpwnam(3) recommends to use $HOME instead of getpwuid()->pw_dir, as it allows users to point programs to a different path. Using getpwuid() also breaks namespaces-related use cases, like `unshare -r`. Patch was submitted by Dmitry Bogatov on the Debian bug tracker: https://bugs.debian.org/825397 Signed-off-by: Christoph Lohmann <20h@r-36.net>
* Fix url parsing in load()Gravatar Quentin Rameau 2016-07-051-1/+4
|
* Apply domain parameters each time url is changedGravatar Quentin Rameau 2016-07-051-5/+2
| | | | | Urls are only changed at load (initial requested one), or while redirected. When the page is committed, url is already final.
* Fix inspector togglingGravatar Quentin Rameau 2016-07-051-8/+5
| | | | | Always get the inspector object, and let the user eventually close it even if it's disabled for the current page.
* Rectify how parameters are handled in setparameter()Gravatar Quentin Rameau 2016-07-051-22/+23
| | | | | Access parameters through given Arg parameter instead of accessing global parameters.
* Fix parameter initialization and assignmentGravatar Quentin Rameau 2016-07-051-30/+34
|
* Adapting the whole surf structure to new settingsGravatar Quentin Rameau 2016-07-052-155/+233
|
* Adapt default parameters to new config styleGravatar Quentin Rameau 2016-07-051-29/+32
|
* Introduce new data structure for handling settingsGravatar Quentin Rameau 2016-07-051-2/+38
|
* Disable globbing in curl commandGravatar Dmitrij D. Czarkoff 2016-03-061-1/+1
| | | | | | Curl is invoked for downloading particular files. Without "-g" flag it would apply globbing rules to URLs, which may end badly in case URL is not properly quoted.
* Get rid of JavaScript for scrolling in viewsGravatar Quentin Rameau 2016-03-022-18/+61
| | | | | | This is still a hack, until WebKitGTK gives us a more practical and stable way to do that. Manipulating directly the DOM inside a webextension is a pain and only usable with unstable API atm.
* Modify linking parameterGravatar Quentin Rameau 2016-03-021-1/+1
|
* Import the arg.h from st which fixed the oob bug.Gravatar Christoph Lohmann 2016-03-021-20/+27
|
* Fix title handlingGravatar Quentin Rameau 2015-12-011-4/+8
| | | | | | | Don't forget to always set the title to the current uri, this way it's up to date when there is no title on the page (ie for local file exploration). Thanks to pickfire for reporting the issue.
* Fix clickexternplayer(), no need to test the target againGravatar Quentin Rameau 2015-11-241-4/+2
|
* Fix user agent command-line parameterGravatar Quentin Rameau 2015-11-231-1/+1
| | | | Thanks to yui for seeing that!
* Add webkit language settingsGravatar Quentin Rameau 2015-11-222-0/+12
| | | | | You can now set your prefered website languages in order. It is also possible to enable spell checking in the same way.
* Fix key handlingGravatar Quentin Rameau 2015-11-221-41/+17
| | | | | | I had forgotten to compare configured key values against lowered pressed key values. Integrated keypress() into winevent().
* Fix target uri handling when leaving windowGravatar Quentin Rameau 2015-11-221-9/+16
| | | | | | | | Introduce a new string pointer overtitle in Client to be able to keep the targeturi intact while modifying the former for overriding or not the window title. Connect to GDK_ENTER_NOTIFY to restore overtitle when refocusing on window.
* Adapt togglestyle()Gravatar Quentin Rameau 2015-11-221-1/+6
| | | | | We can't apply an empty stylesheet anymore, instead remove any previous stylesheet.
* Modify decideresource() and favicon handlingGravatar Quentin Rameau 2015-11-221-4/+5
| | | | | Return as soon as the request has been processed. No need to modify the favicon uri, just ignore it.
* Style change in newview(), sort signals orderGravatar Quentin Rameau 2015-11-221-12/+12
|
* Fix error handling in spawn()Gravatar Quentin Rameau 2015-11-221-2/+2
| | | | Be more specific about process name and exit with an error.
* Modify default handling of cookiepolicy functionsGravatar Quentin Rameau 2015-11-221-6/+4
| | | | | It's more obvious this way that the default is to always accept cookies and not the other way around.
* Simplify handling of c->titleGravatar Quentin Rameau 2015-11-221-17/+13
|
* Fix pasteuri()Gravatar Quentin Rameau 2015-11-221-1/+1
| | | | The uri check had been inverted.
* Style fix in sigchld()Gravatar Quentin Rameau 2015-11-221-1/+2
|
* Replace use of EXIT_* constants to 0 and 1Gravatar Quentin Rameau 2015-11-221-2/+2
|
* Fix WM_CLASS and WM_WINDOW_ROLE propertiesGravatar Quentin Rameau 2015-11-221-12/+8
| | | | | | | | | | | | | | Instead of forcing class and instance names, which is what GTK does by default anyway, allow the user to set the instance name, but keep the general class as “Surf”. Is we won't support a “-name” parameter and don't implement a parsing of RESOURCE_NAME env variable, let's fallback on the third behaviour, use the name of the calling executable. That would let the user do things like 'ln -s ./surf ./surf-other; ./surf-other' and set different parameters for the two instances (in dwm for example). Try to generate a unique WM_WINDOW_ROLE (within the surf process) composed of “Surf” and the view ID.
* Remove window hints settingsGravatar Quentin Rameau 2015-11-221-3/+0
| | | | Setting minimum size to 1x1 is not necessary as this is the default.
* Style indentation fixGravatar Quentin Rameau 2015-11-221-2/+2
|
* Continue making chars constGravatar Quentin Rameau 2015-11-221-2/+2
|
* Correct and simplify buttonreleased() gdk eventGravatar Quentin Rameau 2015-11-221-5/+4
| | | | | | The passed event is a GdkEvent (or GdkEventButton), but not a GdkEventKey. Access the struct directly.
* Un(g)boolify to separate GTK dependant code from the restGravatar Quentin Rameau 2015-11-222-29/+27
|
* Use char instead of gchar and make them const when possibleGravatar Quentin Rameau 2015-11-221-6/+6
|
* Style update for indentationGravatar Quentin Rameau 2015-11-222-181/+158
|
* Add mouse function to play medias in external playerGravatar Quentin Rameau 2015-11-212-0/+20
| | | | Control + left click launches mpv with the target media url.
* Update creditsGravatar Quentin Rameau 2015-11-211-0/+1
|
* Style change in includes orderGravatar Quentin Rameau 2015-11-211-18/+18
|
* Style change in functions orderingGravatar Quentin Rameau 2015-11-212-802/+802
| | | | | Try to group and order functions in a logical manner. Same thing for config keybindings.
* Cleanup remaining unused variables and copystr()Gravatar Quentin Rameau 2015-11-201-18/+0
|
* Adapt newwindow()Gravatar Quentin Rameau 2015-11-201-25/+36
| | | | | Reorder cmdline options alphabetically and try to keep settings as they have been toggled in this surf client.
* Adapt user agent handlingGravatar Quentin Rameau 2015-11-202-7/+11
| | | | | Now we can only append Surf version to the default WebKit user agent instead of setting the whole string (while this remains possible to do).
* Adapt updatetitle()Gravatar Quentin Rameau 2015-11-201-14/+12
| | | | | Now always show loading progress, still print mouse over link uri before page uri. Process simplyfied because we use const strings.
* Adapt toggle statisticsGravatar Quentin Rameau 2015-11-201-33/+17
| | | | | | | Rename *togglestat to plural *togglestats, add frame flatenning indicator, resize array in consequence. Use a static index instead of a dynamic one as we always use all values anyway.